in core/src/main/java/org/apache/commons/functor/core/collection/IsEmpty.java [54:69]
public boolean test(A obj) {
Validate.notNull(obj, "Argument must not be null");
if (obj instanceof Collection<?>) {
return testCollection((Collection<?>) obj);
}
if (obj instanceof Map<?, ?>) {
return testMap((Map<?, ?>) obj);
}
if (obj instanceof String) {
return testString((String) obj);
}
if (obj.getClass().isArray()) {
return testArray(obj);
}
throw new IllegalArgumentException("Expected Collection, Map, String or Array, found " + obj.getClass());
}