- java.lang.Object
-
- java.lang.Enum<Goal.Desirability>
-
- be.yildizgames.shared.ia.goal.Goal.Desirability
-
- All Implemented Interfaces:
Serializable
,Comparable<Goal.Desirability>
public static enum Goal.Desirability extends Enum<Goal.Desirability>
Possible desirability for a given goal.- Author:
- Grégory Van den Borre
-
-
Method Summary
Modifier and Type Method Description static Goal.Desirability
valueOf(String name)
Returns the enum constant of this type with the specified name.static Goal.Desirability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Goal.Desirability NONE
This goal would never be done.
-
LOW
public static final Goal.Desirability LOW
This goal would be done if nothing more urgent is planned.
-
MEDIUM
public static final Goal.Desirability MEDIUM
This goal would be done as soon as possible.
-
HIGH
public static final Goal.Desirability HIGH
This goal will be done right now.
-
-
Method Detail
-
values
public static Goal.Desirability[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Goal.Desirability 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
-
-