@Test @DisplayName("produce iterator over filters") void produceFilterIterator() { Filter[] filters = { eq("firstFilter", 1), eq("secondFilter", 42), gt("thirdFilter", currentTime())}; Multimap<Column, Filter> filterMap = ImmutableMultimap.of(column(), filters[0], column(), filters[1], column(), filters[2]); CompositeQueryParameter parameter = CompositeQueryParameter.from(filterMap, ALL); QueryParameters parameters = newBuilder().add(parameter) .build(); Collection<Filter> results = newLinkedList(); for (CompositeQueryParameter queryParameter : parameters) { results.addAll(queryParameter.filters() .values()); } assertArrayEquals(filters, results.toArray()); }
public static Builder newBuilder() { return new Builder(); }
QueryParameters implements Iterable<CompositeQueryParameter> { public static Builder newBuilder() { return new Builder(); } }
QueryParameters implements Iterable<CompositeQueryParameter> { public static Builder newBuilder() { return new Builder(); } private  QueryParameters(Builder builder); }
QueryParameters implements Iterable<CompositeQueryParameter> { public static Builder newBuilder() { return new Builder(); } private  QueryParameters(Builder builder); static Builder newBuilder(); static Builder newBuilder(QueryParameters parameters); static QueryParameters activeEntityQueryParams(RecordStorage<?> storage); @Override Iterator<CompositeQueryParameter> iterator(); boolean isLifecycleAttributesSet(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
QueryParameters implements Iterable<CompositeQueryParameter> { public static Builder newBuilder() { return new Builder(); } private  QueryParameters(Builder builder); static Builder newBuilder(); static Builder newBuilder(QueryParameters parameters); static QueryParameters activeEntityQueryParams(RecordStorage<?> storage); @Override Iterator<CompositeQueryParameter> iterator(); boolean isLifecycleAttributesSet(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }