@ParametersAreNonnullByDefault public final class EventPredicates extends Object
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Event> |
attributeEquals(String name,
Object value)
Matches events which have the specified value for a given attribute.
|
static Predicate<Event> |
level(EventLevel... levels)
Matches events which have any of the specified
levels. |
static Predicate<Event> |
type(EventType type)
Matches events which have the specified
type. |
@Nonnull public static Predicate<Event> attributeEquals(String name, @Nullable Object value)
null,
the predicate returns true iff the event has a null value for that attribute, which includes
not having any value for that attribute.name - the name of the attribute to checkvalue - the expected value, compared with Object.equalsPredicate which returns true for events which have matching values
for the specified attribute, and false for all others@Nonnull public static Predicate<Event> level(EventLevel... levels)
levels. If no levels are provided, the
predicate will always return false.levels - the levels to compare againstPredicate which returns true for events with one of the specified
levels, and false for all othersCopyright © 2018 Atlassian. All rights reserved.