- All Implemented Interfaces:
Serializable
,Comparable<ElementOrderMethod.Type>
,java.lang.constant.Constable
- Enclosing class:
- ElementOrderMethod<T>
Element order method type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUsage of an actual comparator instance to order the elements.Use the Guava node order comparator.An internal numbering scheme backed by a map.Natural ordering. -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementOrderMethod.Type
Returns the enum constant of this type with the specified name.static ElementOrderMethod.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMPARATOR
Usage of an actual comparator instance to order the elements. -
NATURAL
Natural ordering. This method may result inClassCastException
if the elements are not comparable. -
GUAVA_COMPARATOR
Use the Guava node order comparator. -
INTERNAL
An internal numbering scheme backed by a map. This incurs space penalty and additional hashtable lookups on each comparison.
-
-
Method Details
-
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
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
-