@ParametersAreNonnullByDefault public final class JohnsonEventPredicates extends Object
Modifier and Type | Method and Description |
---|---|
static Predicate<com.atlassian.johnson.event.Event> |
blocksStartup()
Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up.
|
static Predicate<com.atlassian.johnson.event.Event> |
hasLevel(JohnsonEventLevel eventLevel)
Returns a predicate that checks whether the event has exactly the given level.
|
static Predicate<com.atlassian.johnson.event.Event> |
hasType(JohnsonEventType eventType)
Returns a predicate that checks whether the event has exactly the given type.
|
@Nonnull public static Predicate<com.atlassian.johnson.event.Event> blocksStartup()
@Nonnull public static Predicate<com.atlassian.johnson.event.Event> hasLevel(JohnsonEventLevel eventLevel)
eventLevel
- the level for which to check@Nonnull public static Predicate<com.atlassian.johnson.event.Event> hasType(JohnsonEventType eventType)
eventType
- the type for which to checkCopyright © 2003–2017 Atlassian. All rights reserved.