[]
Serializable, Comparable<SortDataOption>, Constable将此枚举与基于值的排序字段一起使用,可以控制看起来像数字的文本是作为数值数据排序,还是将数值和文本值分开排序。
worksheet.getRange("A1:A4").setValue(new Object[][] {
{"Value"},
{"10"},
{"2"},
{3}
});
ValueSortField sortField = new ValueSortField(worksheet.getRange("A2:A4"));
sortField.setDataOption(SortDataOption.TextAsNumbers);
Enum.EnumDesc<E extends Enum<E>>static SortDataOptionstatic SortDataOption[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null