public final class CompositeQueryParameter
extends java.lang.Object
Filter
instances joined by a logical
composite operator
.Modifier and Type | Method and Description |
---|---|
CompositeQueryParameter |
and(Column column,
io.spine.client.Filter filter)
Merges current instance with the given filter.
|
CompositeQueryParameter |
conjunct(java.lang.Iterable<CompositeQueryParameter> other)
Merges current instance with the given instances by the rules of conjunction.
|
boolean |
equals(java.lang.Object o) |
com.google.common.collect.ImmutableMultimap<Column,io.spine.client.Filter> |
filters()
Returns the joined entity column filters.
|
int |
hashCode() |
boolean |
hasLifecycle()
Returns
true if this parameter contains filters by
the Entity lifecycle columns,
false otherwise. |
io.spine.client.CompositeFilter.CompositeOperator |
operator()
Obtains the composite operator.
|
java.lang.String |
toString() |
public io.spine.client.CompositeFilter.CompositeOperator operator()
public com.google.common.collect.ImmutableMultimap<Column,io.spine.client.Filter> filters()
public CompositeQueryParameter conjunct(java.lang.Iterable<CompositeQueryParameter> other)
The resulting CompositeQueryParameter
contains all the filters of the current and
the given instances joined by the conjunction operator.
other
- the instances of the CompositeQueryParameter
to merge withCompositeQueryParameter
joining all the parameterspublic CompositeQueryParameter and(Column column, io.spine.client.Filter filter)
The resulting CompositeQueryParameter
is joined with
the ALL
operator.
column
- the Column
to add the filter tofilter
- the value of the filter to addCompositeQueryParameter
merged from current instance and
the given filterpublic boolean hasLifecycle()
true
if this parameter contains filters by
the Entity lifecycle columns,
false
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object