/** * Test whether constraints for a particular dimension are missing, empty or match rows. * * @param dimension The dimension for filtering * @param constraintMap The map of filters from the constraint object * * @return true if the constraintMap doesn't constraint this dimension or if the constraint returns rows */ private boolean emptyConstraintOrAnyRows(Dimension dimension, Map<Dimension, Set<ApiFilter>> constraintMap) { return !constraintMap.containsKey(dimension) || constraintMap.get(dimension).isEmpty() || anyRowsMatch(dimension, constraintMap.get(dimension)); }