public enum DefaultJobStatus extends Enum<DefaultJobStatus> implements JobStatus
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a human-friendly description of the status.
|
String |
getName()
Returns a human-friendly name of the status.
|
static DefaultJobStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultJobStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultJobStatus PENDING
public static final DefaultJobStatus SUCCESS
public static final DefaultJobStatus CANCELED
public static final DefaultJobStatus FAILURE
public static DefaultJobStatus[] values()
for (DefaultJobStatus c : DefaultJobStatus.values()) System.out.println(c);
public static DefaultJobStatus 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 String getDescription()
JobStatusgetDescription in interface JobStatusCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.