public enum SortMode extends Enum<SortMode>
In most cases, a field has only one value, so this option is meaningless and defaults to MIN.
When a field is a collection (Array), you can specify one of the values in the collection to be used as the basis for sorting.
public static final SortMode MIN
public static final SortMode MAX
public static final SortMode AVG
public static SortMode[] values()
for (SortMode c : SortMode.values()) System.out.println(c);
public static SortMode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2025. All Rights Reserved.