@ParametersAreNonnullByDefault public final class JohnsonEventPredicates extends Object
Modifier and Type | Method and Description |
---|---|
static @NonNull 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 @NonNull Predicate<com.atlassian.johnson.event.Event> |
blocksStartupButNotLicenseInconsistency()
Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up, but
not a license inconsistency error.
|
static @NonNull Predicate<com.atlassian.johnson.event.Event> |
hasLevel(JohnsonEventLevel eventLevel)
Returns a predicate that checks whether the event has exactly the given level.
|
static @NonNull Predicate<com.atlassian.johnson.event.Event> |
hasType(JohnsonEventType eventType)
Returns a predicate that checks whether the event has exactly the given type.
|
public static @NonNull Predicate<com.atlassian.johnson.event.Event> blocksStartup()
public static @NonNull Predicate<com.atlassian.johnson.event.Event> blocksStartupButNotLicenseInconsistency()
blocksStartup()
, but this predicate excludes
JohnsonEventType.LICENSE_INCONSISTENCY
events.public static @NonNull Predicate<com.atlassian.johnson.event.Event> hasLevel(JohnsonEventLevel eventLevel)
eventLevel
- the level for which to checkpublic static @NonNull Predicate<com.atlassian.johnson.event.Event> hasType(JohnsonEventType eventType)
eventType
- the type for which to checkCopyright © 2003–2021 Atlassian. All rights reserved.