|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.collections.CollectionUtils
public class CollectionUtils
| Constructor Summary | |
|---|---|
CollectionUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
asMap(K[] keyArray,
V[] valueArray)
Takes an array of keys and an array of values, and maps the former to the latter. |
|
static
|
asSet(E[] array)
|
|
static
|
asSortedSet(E[] array)
|
|
static
|
get(Map<K,V> map,
K... keys)
Get the values corresponding to several keys at once. |
|
static void |
main(String[] args)
|
|
static
|
newList(E... args)
Returns a new List that contains the given arguments. |
|
static
|
newMap(K key1,
V value1,
Object... args)
Returns a new map that contains the given arguments, treating them as a list of alternating keys and values: Map |
|
static
|
newSet(E... args)
Returns a new Set that contains the given arguments. |
|
static
|
newSortedSet(E... args)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionUtils()
| Method Detail |
|---|
public static <E> List<E> newList(E... args)
public static <E> Set<E> newSet(E... args)
public static <E> SortedSet<E> newSortedSet(E... args)
public static <K,V> Map<K,V> newMap(K key1,
V value1,
Object... args)
public static <E> Set<E> asSet(E[] array)
public static <E> SortedSet<E> asSortedSet(E[] array)
public static <K,V> Map<K,V> asMap(K[] keyArray,
V[] valueArray)
K - V - keyArray - valueArray -
public static <K,V> List<V> get(Map<K,V> map,
K... keys)
K - V - keys -
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||