public enum SortOrder extends Enum<SortOrder>
| Enum Constant and Description |
|---|
ASC_NULLS_FIRST |
ASC_NULLS_LAST |
DESC_NULLS_FIRST |
DESC_NULLS_LAST |
| Modifier and Type | Method and Description |
|---|---|
int |
compareBlockValue(Type type,
Block leftBlock,
int leftPosition,
Block rightBlock,
int rightPosition)
Compares the values at the specified positions.
|
boolean |
isAscending() |
boolean |
isNullsFirst() |
static SortOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortOrder ASC_NULLS_FIRST
public static final SortOrder ASC_NULLS_LAST
public static final SortOrder DESC_NULLS_FIRST
public static final SortOrder DESC_NULLS_LAST
public static SortOrder[] values()
for (SortOrder c : SortOrder.values()) System.out.println(c);
public static SortOrder 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 nullpublic boolean isAscending()
public boolean isNullsFirst()
Copyright © 2012–2022. All rights reserved.