- java.lang.Object
-
- java.lang.Enum<ListenerPriority>
-
- io.github.stasgora.observetree.enums.ListenerPriority
-
- All Implemented Interfaces:
Serializable
,Comparable<ListenerPriority>
,Constable
public enum ListenerPriority extends Enum<ListenerPriority>
A utility enum defining five levels ofChangeListener
priority- Author:
- Stanisław Góra
- See Also:
ChangeListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Field Summary
Fields Modifier and Type Field Description int
value
Numeric priority of the enum value
-
Method Summary
Modifier and Type Method Description static ListenerPriority
valueOf(String name)
Returns the enum constant of this type with the specified name.static ListenerPriority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERY_HIGH
public static final ListenerPriority VERY_HIGH
Very high priority: 2
-
HIGH
public static final ListenerPriority HIGH
High priority: 1
-
NORMAL
public static final ListenerPriority NORMAL
Normal priority: 0
-
LOW
public static final ListenerPriority LOW
Low priority: -1
-
VERY_LOW
public static final ListenerPriority VERY_LOW
Very low priority: -2
-
-
Method Detail
-
values
public static ListenerPriority[] 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 ListenerPriority 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
-
-