@Override
    public T apply(S input) {
        if (input.getClass().isArray()) {
            return ev.evaluate((Object[]) input);
        } else {
            return ev.evaluate(input);
        }
    }
Function implementation which uses an {@link Evaluator} for transformation

@param <S> source type
@param <T> target type

@author tiwe
querydsl-collections/src/main/java/com/querydsl/collections/EvaluatorFunction.java