- singletonOrEmpty
Returns the given value as a singleton if non-null, or returns an empty set
otherwise.
- unmodifiableOrCopy
Returns a unmodifiable version of the given set. This method is different than
the standard Collecti
- addToMultiValuesMap
Adds a value in a pseudo multi-values map. The multi-values map is simulated by
a map of lists. The
- compact
Returns a more compact representation of the given set. This method is similar
to #unmodifiableOrCop
- first
Returns the first element of the given iterable, or null if none. This method
does not emit warning
- immutableSet
Returns the specified array as an immutable set, or null if the array is null.
If the given array co
- toArray
Returns the elements of the given collection as an array. This method can be
used when the valueClas
- nonNull
Returns the given set, or Collections#EMPTY_SET if the given set is null.
- createSetForType
Creates an initially empty set for elements of the given type. This method will
creates specialized
- emptySortedSet
Returns a SortedSet which is always empty and accepts no element.Note: This
method exists only on th
- filter
Returns an iterator over the elements of the given iterator where the predicate
returns true. The it
- identityEquals
Returns true if the next elements returned by the given iterators are the same.
This method compares