public final class EventFilter
extends io.spine.value.ValueHolder<io.spine.client.Filter>
Event
.
Can filter events by conditions on both message and context. See factory methods of the class for details.
Modifier and Type | Method and Description |
---|---|
static EventFilter |
eq(io.spine.core.EventContextField field,
java.lang.Object value)
Creates a new equality filter which targets a field in the event context.
|
static EventFilter |
eq(io.spine.base.EventMessageField field,
java.lang.Object value)
Creates a new equality filter which targets a field in the event message.
|
static EventFilter |
ge(io.spine.core.EventContextField field,
java.lang.Object value)
Creates a new "greater than or equals" filter which targets a field in the event context.
|
static EventFilter |
ge(io.spine.base.EventMessageField field,
java.lang.Object value)
Creates a new "greater than or equals" filter which targets a field in the event message.
|
static EventFilter |
gt(io.spine.core.EventContextField field,
java.lang.Object value)
Creates a new "greater than" filter which targets a field in the event context.
|
static EventFilter |
gt(io.spine.base.EventMessageField field,
java.lang.Object value)
Creates a new "greater than" filter which targets a field in the event message.
|
static EventFilter |
le(io.spine.core.EventContextField field,
java.lang.Object value)
Creates a new "less than or equals" filter which targets a field in the event context.
|
static EventFilter |
le(io.spine.base.EventMessageField field,
java.lang.Object value)
Creates a new "less than or equals" filter which targets a field in the event message.
|
static EventFilter |
lt(io.spine.core.EventContextField field,
java.lang.Object value)
Creates a new "less than" filter which targets a field in the event context.
|
static EventFilter |
lt(io.spine.base.EventMessageField field,
java.lang.Object value)
Creates a new "less than" filter which targets a field in the event message.
|
boolean |
test(io.spine.core.Event event) |
public static EventFilter eq(io.spine.base.EventMessageField field, java.lang.Object value)
field
- the message field from which the actual value is takenvalue
- the expected valuepublic static EventFilter eq(io.spine.core.EventContextField field, java.lang.Object value)
field
- the context field from which the actual value is takenvalue
- the expected valuepublic static EventFilter gt(io.spine.base.EventMessageField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the message field from which the actual value is takenvalue
- the expected valuepublic static EventFilter gt(io.spine.core.EventContextField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the context field from which the actual value is takenvalue
- the expected valuepublic static EventFilter lt(io.spine.base.EventMessageField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the message field from which the actual value is takenvalue
- the expected valuepublic static EventFilter lt(io.spine.core.EventContextField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the context field from which the actual value is takenvalue
- the expected valuepublic static EventFilter ge(io.spine.base.EventMessageField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the message field from which the actual value is takenvalue
- the expected valuepublic static EventFilter ge(io.spine.core.EventContextField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the context field from which the actual value is takenvalue
- the expected valuepublic static EventFilter le(io.spine.base.EventMessageField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the message field from which the actual value is takenvalue
- the expected valuepublic static EventFilter le(io.spine.core.EventContextField field, java.lang.Object value)
NOTE: not all value types are supported for ordering comparison. See Filters
for
details.
field
- the context field from which the actual value is takenvalue
- the expected valuepublic boolean test(io.spine.core.Event event)