|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.avis.util.Collections
public final class Collections
General collection utilities.
Method Summary | ||
---|---|---|
static
|
difference(Set<T> set1,
Set<T> set2)
Compute the difference between set1 and set2. |
|
static void |
join(StringBuilder str,
Iterable<?> items,
char separator)
Join a collection of items with a separator and append to a string builder. |
|
static
|
list(E... items)
Create an immutable list from a number of items. |
|
static
|
map(E... pairs)
Create an immutable map from a number of item pairs: even items are keys, their adjacent items are values. |
|
static
|
set(E... items)
Create an immutable set from a number of items. |
|
static
|
union(Map<K,V> map1,
Map<K,V> map2)
Compute the union of map1 and map2. |
|
static
|
union(Set<T> set1,
Set<T> set2)
Compute the union of set1 and set2. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <E> Set<E> set(E... items)
public static <E> List<E> list(E... items)
public static <E> Map<E,E> map(E... pairs)
public static void join(StringBuilder str, Iterable<?> items, char separator)
public static <T> Set<T> difference(Set<T> set1, Set<T> set2)
public static <T> Set<T> union(Set<T> set1, Set<T> set2)
public static <K,V> Map<K,V> union(Map<K,V> map1, Map<K,V> map2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |