useful Collection -> Iterable

Issue #84 resolved
부팅코드1bit
created an issue

change Collection -> Iterable

    public static Iterable transformToIterableObject(ExpressionEvaluator expressionEvaluator, String collectionName, Context context){
        Object collectionObject = expressionEvaluator.evaluate(collectionName, context.toMap());
        if(!(collectionObject instanceof Iterable<?>)) {
                throw new JxlsException(collectionName + " expression is not a collection");
        }
        return (Iterable) collectionObject;
    }

Comments (3)

  1. Log in to comment