Enum Class NodePriority
- All Implemented Interfaces:
Serializable
,Comparable<NodePriority>
,Constable
Used to determine whether a node should be superceded or supercede existing items in the node child list.
- Since:
- 1.10.0
- Author:
- Isabel Maskrey
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe high priority value, which is only overwritten byHIGHEST
priority nodes.The highest priority value, which is never overwritten.The low priority value, which is only overwritten byNORMAL
toHIGHEST
priority nodes.The lowest priority value, which is always overwritten, even by newLOWEST
priority nodes.The normal priority value, which is only overwritten byHIGH
orHIGHEST
priority nodes. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Gets the priority value of this enum entry.static NodePriority
Returns the enum constant of this class with the specified name.static NodePriority[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOWEST
The lowest priority value, which is always overwritten, even by newLOWEST
priority nodes. -
LOW
The low priority value, which is only overwritten byNORMAL
toHIGHEST
priority nodes. -
NORMAL
The normal priority value, which is only overwritten byHIGH
orHIGHEST
priority nodes. -
HIGH
The high priority value, which is only overwritten byHIGHEST
priority nodes. -
HIGHEST
The highest priority value, which is never overwritten.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Gets the priority value of this enum entry.- Returns:
- The priority of the enum entry.
- Since:
- 1.10.0
-