Releases: plume-lib/plume-util
Releases · plume-lib/plume-util
plume-util 1.10.0
OrderedPairIterator
: usesIPair
instead ofMPair
ArraysPlume
: deprecatedsorted()
in favor ofisSorted()
StringsPlume
:firstLineSeparator()
can return null- new method
mapToStringLinewise()
- new method
isVersionNumberLE()
- new class
VersionNumberComparator
CollectionsPlume
: new methodsanyMatch()
,allMatch()
,noneMatch()
plume-util 1.9.3
CollectionsPlume
:- deprecated
Filter
; usejava.util.function.Predicate
instead - new method
replace(Collection<T> c, Collection<Replacement<T>> replacements)
- new method
isSubsequenceMaybeNonContiguous(Iterable<T>, Iterable<T>)
- deprecated
StringsPlume
:- new methods
splitRetainSeparators()
andsplitLinesRetainSeparators()
- new methods
FilesPlume
:- deprecate
fileContents()
in favor of new methodreadString()
- deprecate
writeFile()
in favor of new methodwriteString()
- new method
readLinesRetainingSeparators()
- new method
writeString(Path, String)
- deprecate
plume-util 1.9.2
- Don't use
@InlineMe
, which breaks javac in some clients.
plume-util 1.9.1
FilesPlume
:- deprecate
readFile()
in favor offileContents()
- deprecate
StringsPlume
:- new method
firstLineSeparator(String)
- improved behavior of
splitLines(String)
- new method
CollectionsPlume
:- new method
indexOf(list, value, startIndex)
- new method
plume-util 1.9.0
StringsPlume
:rpad
andlpad
add an ellipsis ("...") if it truncatesrpad(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()
andlistFilter()
- add an overload for
mapCapacity()
- deprecated
noDuplicates()
; usehasNoDuplicates()
instead - deprecated
listFilter()
; usefilter()
instead
- add methods
ArraysPlume
:- deprecated
noDuplicates()
; usehasNoDuplicates()
instead
- deprecated
plume-util 1.8.1
CollectionsPlume
: remove conflicting overrides ofdeepCopy()
IPair
andMPair
: rename fields froma
andb
tofirst
andsecond
MPair
: new methodscloneElements()
,deepCopy()
,deepCopyFirst()
,deepCopySecond()
plume-util 1.8.0
- Deprecated
Pair
class for mutable pairs; useMPair
instead.
OrderedPairIterator
usesMPair
instead ofPair
. - New class
IPair
for immutable pairs. - The
WeakIdentityPair
constructor is deprecated in favor of theof()
method. - New interface
DeepCopyable
. - New methods in
UtilPlume
:firstNonNull()
- New methods in
CollectionsPlume
:- for
Collection
s:cloneElements()
,deepCopy()
- for
Map
s:cloneElements()
,cloneValues()
,createLruCache()
- for
plume-util 1.7.0
- Moved classes
Hasher
,WeakHasherMap
, andWeakIdentityHashMap
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
andnewArraySetOrLinkedHashSet
.
- new method
- New methods in
CollectionsPlume
:sortedSetContainsAll
,sortedSetEquals
, andwithoutDuplicatesSorted
.deepCopy(List)
,deepCopy(TreeSet)
,deepCopy(Map)
, anddeepCopyValues(Map)
.
- New method
UtilPlume.clone(Object)
. - New method
StringsPlume.toStringTruncated(Object, int)
.
plume-util 1.6.5
- New methods
newArrayMapOrHashMap
,newArrayMapOrLinkedHashMap
,
newArraySetOrHashSet
, andnewArraySetOrLinkedHashSet
. - Bug fixes in collection methods.
plume-util 1.6.4
- Fix bug in
Set.addAll()
andSet.removeAll()
methods.