| Constructor and Description |
|---|
TSets() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
intersection(Set<T> a,
Set<T> b)
Return a Set that contains only the elements that are in both
a
and b. |
static Set<Long> |
sequence(long from,
long to)
Return a
Set that contains long integers from the first
parameter to the last one in sequential order. |
static <T> Set<T> |
union(Set<T> a,
Set<T> b)
Return a Set that contains all the elements in both
a and
b. |
public static <T> Set<T> intersection(Set<T> a, Set<T> b)
a
and b.a - b - public static Set<Long> sequence(long from, long to)
Set that contains long integers from the first
parameter to the last one in sequential order.from - the first number (inclusive)to - the second number (inclusive)Set with numbers