public enum SortMode extends Enum<SortMode>
| Enum Constant and Description |
|---|
AVG
When a field has multiple values, compute the average of all the values.
|
MAX
When a field has multiple values, pick the highest value.
|
MEDIAN
When a field has multiple values, compute the median of all the values.
|
MIN
When a field has multiple values, pick the lowest value.
|
SUM
When a field has multiple values, compute the sum of all the values.
|
| Modifier and Type | Method and Description |
|---|---|
static SortMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortMode SUM
public static final SortMode MIN
public static final SortMode MAX
public static final SortMode AVG
public static final SortMode MEDIAN
public static SortMode[] values()
for (SortMode c : SortMode.values()) System.out.println(c);
public static SortMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.