class GroupingRequiredFilterFunctions {

    public static Collection<ValueTuple> atomValuesMatch(Object... fields) {
        List<Iterable<?>> iterableFields = new ArrayList<>();
        
        for (Object field : fields) {
            if (field instanceof Iterable == false) {
                field = Collections.singleton(field);
            }
            iterableFields.add((Iterable<?>) field);
        }
        return atomValuesMatch(iterableFields.toArray(new Iterable[iterableFields.size()]));
    }

}