@Test public void shouldValuesForQuery() throws Exception { Object[] expected = getExpectedValues(); Object[] result = filters.valuesForQuery(); assertArrayEquals(expected, result); }
public Object[] valuesForQuery() { if (requiresFiltering()) { ArrayList<Object> values = new ArrayList<>(); for (Filter filter : filters) { values.addAll(Arrays.asList(filter.valuesForQuery())); } return values.toArray(); } else { return new Object[0]; } }
Filters { public Object[] valuesForQuery() { if (requiresFiltering()) { ArrayList<Object> values = new ArrayList<>(); for (Filter filter : filters) { values.addAll(Arrays.asList(filter.valuesForQuery())); } return values.toArray(); } else { return new Object[0]; } } }
Filters { public Object[] valuesForQuery() { if (requiresFiltering()) { ArrayList<Object> values = new ArrayList<>(); for (Filter filter : filters) { values.addAll(Arrays.asList(filter.valuesForQuery())); } return values.toArray(); } else { return new Object[0]; } } Filters(Filter[] filters);  Filters(Filter filter); }
Filters { public Object[] valuesForQuery() { if (requiresFiltering()) { ArrayList<Object> values = new ArrayList<>(); for (Filter filter : filters) { values.addAll(Arrays.asList(filter.valuesForQuery())); } return values.toArray(); } else { return new Object[0]; } } Filters(Filter[] filters);  Filters(Filter filter); Object[] valuesForQuery(); boolean requiresFiltering(); void setMultiselect(List<FieldDto> fields); String filterForQuery(); String paramsDeclarationForQuery(); }
Filters { public Object[] valuesForQuery() { if (requiresFiltering()) { ArrayList<Object> values = new ArrayList<>(); for (Filter filter : filters) { values.addAll(Arrays.asList(filter.valuesForQuery())); } return values.toArray(); } else { return new Object[0]; } } Filters(Filter[] filters);  Filters(Filter filter); Object[] valuesForQuery(); boolean requiresFiltering(); void setMultiselect(List<FieldDto> fields); String filterForQuery(); String paramsDeclarationForQuery();  }