public final class CompositeEventFilter
extends io.spine.value.ValueHolder<io.spine.client.CompositeFilter>
Modifier and Type | Method and Description |
---|---|
static CompositeEventFilter |
all(EventFilter first,
EventFilter... rest)
Creates a new conjunction composite filter.
|
static CompositeEventFilter |
either(EventFilter first,
EventFilter... 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 CompositeEventFilter all(EventFilter first, EventFilter... rest)
A record is considered matching this filter if and only if it matches all of the passed filters.
public static CompositeEventFilter either(EventFilter first, EventFilter... 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)