Skip to content

Releases: plume-lib/plume-util

plume-util 1.10.0

28 Oct 16:30
Compare
Choose a tag to compare
  • OrderedPairIterator: uses IPair instead of MPair
  • ArraysPlume: deprecated sorted() in favor of isSorted()
  • StringsPlume:
    • firstLineSeparator() can return null
    • new method mapToStringLinewise()
    • new method isVersionNumberLE()
    • new class VersionNumberComparator
  • CollectionsPlume: new methods anyMatch(), allMatch(), noneMatch()

plume-util 1.9.3

19 Apr 18:50
Compare
Choose a tag to compare
  • CollectionsPlume:
    • deprecated Filter; use java.util.function.Predicate instead
    • new method replace(Collection<T> c, Collection<Replacement<T>> replacements)
    • new method isSubsequenceMaybeNonContiguous(Iterable<T>, Iterable<T>)
  • StringsPlume:
    • new methods splitRetainSeparators() and splitLinesRetainSeparators()
  • FilesPlume:
    • deprecate fileContents() in favor of new method readString()
    • deprecate writeFile() in favor of new method writeString()
    • new method readLinesRetainingSeparators()
    • new method writeString(Path, String)

plume-util 1.9.2

07 Apr 22:15
Compare
Choose a tag to compare
  • Don't use @InlineMe, which breaks javac in some clients.

plume-util 1.9.1

06 Apr 23:39
Compare
Choose a tag to compare
  • FilesPlume:
    • deprecate readFile() in favor of fileContents()
  • StringsPlume:
    • new method firstLineSeparator(String)
    • improved behavior of splitLines(String)
  • CollectionsPlume:
    • new method indexOf(list, value, startIndex)

plume-util 1.9.0

06 Apr 23:38
Compare
Choose a tag to compare
  • StringsPlume:
    • rpad and lpad add an ellipsis ("...") if it truncates
    • rpad(double, ...) does not truncate values before the decimal point
    • add rpad that pads with an arbitrary character
    • add rpad that never truncates
    • add lpad that never truncates
  • CollectionsPlume:
    • add methods duplicates() and listFilter()
    • add an overload for mapCapacity()
    • deprecated noDuplicates(); use hasNoDuplicates() instead
    • deprecated listFilter(); use filter() instead
  • ArraysPlume:
    • deprecated noDuplicates(); use hasNoDuplicates() instead

plume-util 1.8.1

02 Jun 17:03
Compare
Choose a tag to compare
  • CollectionsPlume: remove conflicting overrides of deepCopy()
  • IPair and MPair: rename fields from a and b to first and second
  • MPair: new methods cloneElements(), deepCopy(), deepCopyFirst(), deepCopySecond()

plume-util 1.8.0

02 Jun 14:23
Compare
Choose a tag to compare
plume-util 1.8.0 Pre-release
Pre-release
  • Deprecated Pair class for mutable pairs; use MPair instead.
    OrderedPairIterator uses MPair instead of Pair.
  • New class IPair for immutable pairs.
  • The WeakIdentityPair constructor is deprecated in favor of the of() method.
  • New interface DeepCopyable.
  • New methods in UtilPlume:
    • firstNonNull()
  • New methods in CollectionsPlume:
    • for Collections: cloneElements(), deepCopy()
    • for Maps: cloneElements(), cloneValues(), createLruCache()

plume-util 1.7.0

10 May 20:59
Compare
Choose a tag to compare
  • Moved classes Hasher, WeakHasherMap, and WeakIdentityHashMap
    to a new project, hashmap-util. It is available on Maven Central.
  • In ArraySet:
    • new method ArraySet.sort.
    • widened the formal parameter type of newArraySetOrHashSet and newArraySetOrLinkedHashSet.
  • New methods in CollectionsPlume:
    • sortedSetContainsAll, sortedSetEquals, and withoutDuplicatesSorted.
    • deepCopy(List), deepCopy(TreeSet), deepCopy(Map), and deepCopyValues(Map).
  • New method UtilPlume.clone(Object).
  • New method StringsPlume.toStringTruncated(Object, int).

plume-util 1.6.5

09 Jan 00:41
Compare
Choose a tag to compare
  • New methods newArrayMapOrHashMap, newArrayMapOrLinkedHashMap,
    newArraySetOrHashSet, and newArraySetOrLinkedHashSet.
  • Bug fixes in collection methods.

plume-util 1.6.4

08 Jan 21:16
Compare
Choose a tag to compare
  • Fix bug in Set.addAll() and Set.removeAll() methods.