Enum SortMode
- All Implemented Interfaces:
Serializable
,Comparable<SortMode>
Defines how to pick the value to sort on for multi-valued fields.
-
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 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
-