public enum CheckState extends Enum<CheckState>
This state applies to a single check; for the aggregated state associated with a change, see CombinedCheckState.
Ordering is not significant in this class, but for consistency's sake the ordering matches
CombinedCheckState
where applicable.
Enum Constant and Description |
---|
FAILED
The check terminated and failed.
|
NOT_RELEVANT
The check is not relevant for the change.
|
NOT_STARTED
The check is relevant to the change, but the checker has not started work.
|
RUNNING
The checker is currently running the check.
|
SCHEDULED
The checker has acknowledged that it has work to do on the change, and will start work in the
future.
|
SUCCESSFUL
The check terminated and succeeded.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInProgress()
Returns whether the state represents an in-progress state.
|
static CheckState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CheckState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckState FAILED
Failure may include the following cases:
public static final CheckState NOT_STARTED
public static final CheckState SCHEDULED
public static final CheckState RUNNING
public static final CheckState SUCCESSFUL
public static final CheckState NOT_RELEVANT
public static CheckState[] values()
for (CheckState c : CheckState.values()) System.out.println(c);
public static CheckState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isInProgress()
A check is in progress if the checker is relevant to the change, and the checker system has not yet completed the check.
Copyright © 2018–2024. All rights reserved.