- newHashSet
Creates a mutable HashSet instance containing the given elements in unspecified
order.Note: if mutab
- difference
Returns an unmodifiable view of the difference of two sets. The returned set
contains all elements t
- newLinkedHashSet
Creates a mutable LinkedHashSet instance containing the given elements in order.
Note: if mutability
- intersection
Returns an unmodifiable view of the intersection of two sets. The returned set
contains all elements
- newTreeSet
Creates a TreeSet instance containing the given elements sorted by their natural
ordering.Note: if y
- union
Returns an unmodifiable view of the union of two sets. The returned set contains
all elements that a
- newHashSetWithExpectedSize
Creates a HashSet instance, with a high enough "initial capacity" that it should
hold expectedSize
- filter
Returns the elements of a SortedSet, unfiltered, that satisfy a predicate. The
returned set is a liv
- newConcurrentHashSet
Creates a thread-safe set backed by a hash map and containing the given
elements. The set is backed
- newIdentityHashSet
Creates an empty Set that uses identity to determine equality. It compares
object references, instea
- cartesianProduct
Returns every possible list that can be formed by choosing one element from each
of the given sets i
- immutableEnumSet
Returns an immutable set instance containing the given enum elements.
Internally, the returned set w