Enum CometPlaceholder.LoadConstraint
- java.lang.Object
-
- java.lang.Enum<CometPlaceholder.LoadConstraint>
-
- com.priint.pubserver.comet.entity.placeholder.CometPlaceholder.LoadConstraint
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CometPlaceholder.LoadConstraint>
- Enclosing class:
- CometPlaceholder
public static enum CometPlaceholder.LoadConstraint extends java.lang.Enum<CometPlaceholder.LoadConstraint>
The enum Load constraint.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCKEDLocked load constraint.NEVERNever load constraint.PROMPTPrompt load constraint.RELOADABLEReloadable load constraint.UNKNOWNUnknown load constraint.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Gets id.static CometPlaceholder.LoadConstraintvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CometPlaceholder.LoadConstraint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final CometPlaceholder.LoadConstraint UNKNOWN
Unknown load constraint.
-
RELOADABLE
public static final CometPlaceholder.LoadConstraint RELOADABLE
Reloadable load constraint.
-
PROMPT
public static final CometPlaceholder.LoadConstraint PROMPT
Prompt load constraint.
-
NEVER
public static final CometPlaceholder.LoadConstraint NEVER
Never load constraint.
-
LOCKED
public static final CometPlaceholder.LoadConstraint LOCKED
Locked load constraint.
-
-
Method Detail
-
values
public static CometPlaceholder.LoadConstraint[] 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 (CometPlaceholder.LoadConstraint c : CometPlaceholder.LoadConstraint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CometPlaceholder.LoadConstraint valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getId
public int getId()
Gets id.- Returns:
- the id
-
-