@Test @DisplayName("support equality") void supportEquality() { QueryParameters paramsA1 = newBuilder().build(); QueryParameters paramsA2 = newBuilder().build(); Column bColumn = column(); Filter bFilter = Filters.eq("b", "c"); QueryParameters paramsB1 = newBuilder().add(aggregatingParameter(bColumn, bFilter)) .build(); QueryParameters paramsB2 = newBuilder().add(aggregatingParameter(bColumn, bFilter)) .build(); QueryParameters paramsB3 = newBuilder().add(aggregatingParameter(bColumn, bFilter)) .build(); Column cColumn = column(); Filter cFilter = Filters.eq("a", 42); QueryParameters paramsC = newBuilder().add(aggregatingParameter(cColumn, cFilter)) .build(); new EqualsTester().addEqualityGroup(paramsA1, paramsA2) .addEqualityGroup(paramsB1, paramsB2, paramsB3) .addEqualityGroup(paramsC) .testEquals(); }
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();  }