public final class CompositeEntityStateFilter
extends io.spine.value.ValueHolder<io.spine.client.CompositeFilter>
EntityState
filters.Modifier and Type | Method and Description |
---|---|
static CompositeEntityStateFilter |
all(EntityStateFilter first,
EntityStateFilter... rest)
Creates a new conjunction composite filter.
|
static CompositeEntityStateFilter |
either(EntityStateFilter first,
EntityStateFilter... rest)
Creates a new disjunction composite filter.
|
java.util.List<io.spine.client.MessageFilter<M>> |
filters()
Obtains message filters included into this composite message filter.
|
io.spine.client.CompositeFilter.CompositeOperator |
operator()
Obtains the operator which will be used for combining enclosed message filters.
|
default boolean |
test(M message)
Verifies if this filter passed the message.
|
public static CompositeEntityStateFilter all(EntityStateFilter first, EntityStateFilter... rest)
A record is considered matching this filter if and only if it matches all of the passed filters.
public static CompositeEntityStateFilter either(EntityStateFilter first, EntityStateFilter... rest)
A record is considered matching this filter if it matches at least one of the passed filters.
public java.util.List<io.spine.client.MessageFilter<M>> filters()
public io.spine.client.CompositeFilter.CompositeOperator operator()
CompositeFilter.CompositeOperator
public boolean test(M message)