Package com.spertus.jacquard.common
Enum Class Result.Order
- All Implemented Interfaces:
Serializable
,Comparable<Result.Order>
,Constable
- Enclosing class:
- Result
The publication order for results. The default is
NATURAL
.
This is used by Result.reorderResults(List, Order)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlphabetical order by result name.In decreasing order by maximum score.In increasing order by maximum score.The order in which they were generated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Result.Order
Returns the enum constant of this class with the specified name.static Result.Order[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NATURAL
The order in which they were generated. In other words, this will not reorder elements. -
ALPHABETICAL
Alphabetical order by result name. -
INCREASING_MAX_SCORE
In increasing order by maximum score. -
DECREASING_MAX_SCORE
In decreasing order by maximum score.
-
-
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
-