List of utility methods to do Collection Null
boolean | isEmplyOrNull(Collection is Emply Or Null if (collection == null || collection.size() <= 0) { return true; return false; |
boolean | isNotNull(Collection collection) is Not Null return !isNull(collection);
|
boolean | isNull(Collection collection) is Null if (collection == null || collection.size() == 0) { return true; return false; |
boolean | isNull(Collection collection) is Null return collection == null || collection.isEmpty();
|
boolean | isNull(Collection> c) is Null return null == c;
|
boolean | isNull(Collection> collection) Determines whether or not an Collection contains only null elements. return collection.stream().allMatch(e -> e == null);
|
boolean | isNull(Collection> collection) is Null if (collection == null || collection.isEmpty()) { return true; return false; |
boolean | isNull(Collection> collection) Returns true if the collection is null or empty return ((collection == null) || (collection.isEmpty()));
|
Collection | nullSafe(Collection null Safe return collection == null ? Collections.emptyList() : collection;
|
Collection | nullSafe(Collection null Safe return collection == null ? Collections.<T>emptyList() : collection;
|