Package io.tech1.framework.domain.enums
Enum Status
- java.lang.Object
-
- java.lang.Enum<Status>
-
- io.tech1.framework.domain.enums.Status
-
- All Implemented Interfaces:
Serializable,Comparable<Status>
public enum Status extends Enum<Status>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETEDFAILUREPROGRESS_20PROGRESS_25PROGRESS_33PROGRESS_40PROGRESS_50PROGRESS_60PROGRESS_66PROGRESS_75PROGRESS_80STARTEDSUCCESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()booleanisCompleted()booleanisStarted()StringtoString()static StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTED
public static final Status STARTED
-
COMPLETED
public static final Status COMPLETED
-
FAILURE
public static final Status FAILURE
-
SUCCESS
public static final Status SUCCESS
-
PROGRESS_20
public static final Status PROGRESS_20
-
PROGRESS_25
public static final Status PROGRESS_25
-
PROGRESS_33
public static final Status PROGRESS_33
-
PROGRESS_40
public static final Status PROGRESS_40
-
PROGRESS_50
public static final Status PROGRESS_50
-
PROGRESS_60
public static final Status PROGRESS_60
-
PROGRESS_66
public static final Status PROGRESS_66
-
PROGRESS_75
public static final Status PROGRESS_75
-
PROGRESS_80
public static final Status PROGRESS_80
-
-
Method Detail
-
values
public static Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Status c : Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isStarted
public boolean isStarted()
-
isCompleted
public boolean isCompleted()
-
getValue
public String getValue()
-
-