List of utility methods to do Collection Check
boolean | isa(Collection isa for (Class<?> cur : types) { if (cur.isAssignableFrom(type)) { return true; return false; |
boolean | isACollection(Object input) is A Collection return input instanceof Collection; |
boolean | isAllFalse(Collection is All False for (Boolean aBoolean : booleans) { if (aBoolean) return false; return true; |
boolean | isArrayOrCollection(Class clazz) is Array Or Collection if (clazz.isArray()) return true; return Collection.class.isAssignableFrom(clazz); |
boolean | isArrayOrCollection(Object paramObj) is Array Or Collection if (paramObj == null) { return false; if (paramObj instanceof Collection || paramObj.getClass().isArray()) { return true; return false; |
boolean | isArrayOrCollection(Object v) is Array Or Collection return v != null && (v.getClass().isArray() || v instanceof Collection<?>); |
boolean | isArrayOrCollection(String type) is Array Or Collection return isCollection(type) || isArray(type);
|
boolean | isAssignableFrom(final Collection is Assignable From for (final Class<?> allowedClass : classes) { if (allowedClass != null) { if (allowedClass.isAssignableFrom(objectClass)) { return true; return false; ... |
boolean | isBlank(Collection coll) is Blank return (coll == null || coll.isEmpty());
|
boolean | isBlank(Collection> c) is Blank return c == null || c.isEmpty();
|