Modifier and Type | Field and Description |
---|---|
static SortedSet |
EMPTY_SORTED_SET
Desperately missing from
java.util.Collections . |
Modifier and Type | Method and Description |
---|---|
static <E> List<Set<E>> |
allSubsets(Set<E> set) |
static <T> SortedSet<T> |
emptySortedSet()
Desperately missing from
java.util.Collections . |
static <T> Set<T> |
intersection(Collection<? extends T> lhs,
Collection<? extends T> rhs)
Creates and returns a set that contains all elements that are contained both in lhs and
rhs.
|
static <T> Set<T> |
of(T... values)
Creates and returns a
Set that contains the given values. |
static <T> Set<T> |
union(Collection<? extends T> lhs,
Collection<? extends T> rhs)
Creates and returns a set that contains all elements of lhs and rhs.
|
public static final SortedSet EMPTY_SORTED_SET
java.util.Collections
.public static <E> List<Set<E>> allSubsets(Set<E> set)
public static <T> SortedSet<T> emptySortedSet()
java.util.Collections
.public static <T> Set<T> of(T... values)
Set
that contains the given values.
The implementation of the set, and whether the set is modifiable or not, is unspecified.
public static <T> Set<T> union(Collection<? extends T> lhs, Collection<? extends T> rhs)
The implementation of the result set, and whether it is modifiable or not, is unspecified.
public static <T> Set<T> intersection(Collection<? extends T> lhs, Collection<? extends T> rhs)
The implementation of the result set, and whether it is modifiable or not, is unspecified.
Copyright © 2018 Arno Unkrig. All rights reserved.