Package org.projectnessie.events.spi
Interface EventFilter
- All Superinterfaces:
Predicate<org.projectnessie.events.api.Event>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface EventFilter
extends Predicate<org.projectnessie.events.api.Event>
A filter for events.
Filters can be combined using and(EventFilter...), or(EventFilter...) and
not(EventFilter).
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic EventFilterall()Returns a filter that matches all events.static EventFilterand(EventFilter... filters) Returns a filter that matches all events that match all the given filters.static EventFilterReturns a filter that matches all events created after the given instant.static EventFilterReturns a filter that matches all events created before the given instant.static EventFilterhasProperty(String key) Returns a filter that matches all events that have a property with the given key.static EventFilterhasProperty(String key, String value) Returns a filter that matches all events that have a property with the given key and value.static EventFilterinitiatedBy(String username) Returns a filter that matches all events initiated by the given username.static EventFilternone()Returns a filter that matches no events.static EventFilternot(EventFilter filter) Returns a filter that matches all events that do not match the given filter.static EventFilteror(EventFilter... filters) Returns a filter that matches all events that match at least one of the given filters.static EventFilterrepositoryId(String id) Returns a filter that matches all events that have the given repository id.
-
Method Details
-
all
Returns a filter that matches all events. -
none
Returns a filter that matches no events. -
and
Returns a filter that matches all events that match all the given filters. -
or
Returns a filter that matches all events that match at least one of the given filters. -
not
Returns a filter that matches all events that do not match the given filter. -
repositoryId
Returns a filter that matches all events that have the given repository id. -
createdAfter
Returns a filter that matches all events created after the given instant. -
createdBefore
Returns a filter that matches all events created before the given instant. -
initiatedBy
Returns a filter that matches all events initiated by the given username. -
hasProperty
Returns a filter that matches all events that have a property with the given key. -
hasProperty
Returns a filter that matches all events that have a property with the given key and value.
-