public final class CollectionUtils extends Object
| Constructor | Description |
|---|---|
CollectionUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isEmpty(Collection<?> collection) |
Returns
true if the specified collection is null or
empty. |
static boolean |
isNotEmpty(Collection<?> collection) |
Returns
true if the specified collection is not empty. |
public CollectionUtils()
public static boolean isEmpty(Collection<?> collection)
true if the specified collection is null or
empty.collection - The collection. May be null.true if the collection is null or empty,
else false.public static boolean isNotEmpty(Collection<?> collection)
true if the specified collection is not empty.collection - The collection. May be null.true if the collection is not empty, else
false.Copyright © 2018 Connect2id Ltd.. All rights reserved.