public Integer evaluate()

in core/src/main/java/org/apache/commons/functor/core/collection/Size.java [48:60]


    public Integer evaluate(Object obj) {
        Validate.notNull(obj, "Argument must not be null");
        if (obj instanceof Collection<?>) {
            return evaluate((Collection<?>) obj);
        }
        if (obj instanceof String) {
            return evaluate((String) obj);
        }
        if (obj.getClass().isArray()) {
            return evaluateArray(obj);
        }
        throw new IllegalArgumentException("Expected Collection, String or Array, found " + obj);
    }