Enum Class SortMode
- All Implemented Interfaces:
Serializable
,Comparable<SortMode>
,Constable
Defines how to pick the value to sort on for multi-valued fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen a field has multiple values, compute the average of all the values.When a field has multiple values, pick the highest value.When a field has multiple values, compute the median of all the values.When a field has multiple values, pick the lowest value.When a field has multiple values, compute the sum of all the values. -
Method Summary
-
Enum Constant Details
-
SUM
When a field has multiple values, compute the sum of all the values. -
MIN
When a field has multiple values, pick the lowest value. -
MAX
When a field has multiple values, pick the highest value. -
AVG
When a field has multiple values, compute the average of all the values. -
MEDIAN
When a field has multiple values, compute the median of all the values.
-
-
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
-