public static enum RestoreInProgress.State extends Enum<RestoreInProgress.State>
Enum Constant and Description |
---|
FAILURE
Restore failed
|
INIT
Initializing state
|
STARTED
Started state
|
SUCCESS
Restore finished successfully
|
Modifier and Type | Method and Description |
---|---|
boolean |
completed()
Returns true if restore process completed (either successfully or with failure)
|
static RestoreInProgress.State |
fromValue(byte value)
Returns state corresponding to state code
|
byte |
value()
Returns state code
|
static RestoreInProgress.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestoreInProgress.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestoreInProgress.State INIT
public static final RestoreInProgress.State STARTED
public static final RestoreInProgress.State SUCCESS
public static final RestoreInProgress.State FAILURE
public static RestoreInProgress.State[] values()
for (RestoreInProgress.State c : RestoreInProgress.State.values()) System.out.println(c);
public static RestoreInProgress.State 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 byte value()
public boolean completed()
public static RestoreInProgress.State fromValue(byte value)
value
- stat codeCopyright © 2009–2017. All rights reserved.