public final class CollectionUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static <K,V> List<V> | addToValueList(Map<K,List<V>> map,
              K key,
              V value)Add value to list of values in the map. | 
| static <T> T | getItemAtPositionOrNull(Collection<T> collection,
                       int position)Return n-th item or null if collection is smaller | 
| static boolean | isEmpty(Collection collection)Returns  trueif the given collection is null or empty, otherwise returnsfalse. | 
| static boolean | isNotEmpty(Collection collection)Returns  trueif the given collection is not null and not empty, otherwise returnsfalse. | 
public static boolean isEmpty(Collection collection)
true if the given collection is null or empty, otherwise returns false.collection - the given collection.true if collection is empty.public static boolean isNotEmpty(Collection collection)
true if the given collection is not null and not empty, otherwise returns false.collection - the given collection.true if collection is not empty.public static <K,V> List<V> addToValueList(Map<K,List<V>> map, K key, V value)
map - key - value - public static <T> T getItemAtPositionOrNull(Collection<T> collection, int position)
T - collection - position - Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.