@ParametersAreNonnullByDefault public final class EventPredicates extends Object
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Event> |
attributeEquals(String name,
Object value)
Checks whether the event has the given value of the given attribute.
|
static Predicate<Event> |
level(EventLevel... levels)
Checks whether the event has any of the given severity levels.
|
static Predicate<Event> |
type(EventType type)
Checks whether the event has the given type.
|
@Nonnull public static Predicate<Event> level(EventLevel... levels)
levels - the levels to compare against@Nonnull public static Predicate<Event> type(EventType type)
type - the type to compare against@Nonnull public static Predicate<Event> attributeEquals(String name, @Nullable Object value)
null,
the predicate returns true if and only if 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 value to check againstCopyright © 2017 Atlassian. All rights reserved.