public static enum CqnSortSpecification.Order extends Enum<CqnSortSpecification.Order>
Enum Constant and Description |
---|
ASC
Ascending order with null values before non-null values.
|
ASC_NULLS_LAST
Ascending order with null values after non-null values.
|
DESC
Descending order with null values after non-null values.
|
DESC_NULLS_FIRST
Descending order with null values before non-null values.
|
Modifier and Type | Field and Description |
---|---|
String |
nulls
The order of null values (first or last)
|
String |
sort
The order (asc or desc)
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static CqnSortSpecification.Order |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CqnSortSpecification.Order |
valueOf(String sort,
String nulls) |
static CqnSortSpecification.Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CqnSortSpecification.Order ASC
public static final CqnSortSpecification.Order DESC
public static final CqnSortSpecification.Order ASC_NULLS_LAST
public static final CqnSortSpecification.Order DESC_NULLS_FIRST
public final String sort
public final String nulls
public static CqnSortSpecification.Order[] values()
for (CqnSortSpecification.Order c : CqnSortSpecification.Order.values()) System.out.println(c);
public static CqnSortSpecification.Order 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 static CqnSortSpecification.Order valueOf(String sort, String nulls)
public String toString()
toString
in class Enum<CqnSortSpecification.Order>
Copyright © 2022 SAP. All rights reserved.