ao-collections-3.0.0
Release Notes
- Breaking change:
AoCollections.filter(List, Class)
now returnsnull
whenlist == null
, instead of an empty list. This is for consistency with other methods. AoArrays
,AoCollections
, andSets
now acceptnull
parameters instead of throwing NPE, where it makes sense. An example is unmodifiable wrappers:null
is arguably already unmodifiable.
ao-collections-2.0.0
Release Notes
MinimalList.copy(List)
optimized to returnCollections.emptyList()
when the list is empty. This was the intent all along, but was lost in some previous refactoring. The method still worked correctly, in that it created a safe copy of the original list, but was sub-optimal.- Now supports Java 9+ modules with included
module-info.class
. - Maven artifact relocated from
com.aoindustries:ao-collections
tocom.aoapps:ao-collections
. - Package renamed from
com.aoindustries.collections
tocom.aoapps.collections
.
ao-collections-1.2.0
Release Notes
-
New utility methods to create
HashSet
andHashMap
to hold a given number of elements. These are useful as lambda method references, where performing the typical computation inline would be unnecessarily verbose. IdentityKey
now has aNULL
constant, along with static factory methods to use this constant fornull
values.
ao-collections-1.1.0
Release Notes
Fixed
SortedProperties
compatibility with Java 9+ by also sortingentrySet()
.Also added
getKeyComparator()
method to support different sort orders.
ao-collections-1.0.0
Release Notes
- Project split out of AO Lang and AO Hodgepodge.
-
New utility class
Sets
for working with sets. Prefer functionality in Commons Collections or other more mainstream places. These methods are things not so concisely doable in commons collections.