|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.util.CollectionUtil
public final class CollectionUtil
Various collection utility methods, mainly targeted to use internally.
| Method Summary | ||
|---|---|---|
static
|
addToValueList(Map<K,List<V>> map,
K key,
V value)
Add value to list of values in the map. |
|
static boolean |
isEmpty(Collection collection)
Returns true if the given collection is null or empty, otherwise returns false. |
|
static boolean |
isNotEmpty(Collection collection)
Returns true if the given collection is not null and not empty, otherwise returns false. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||