public static class Sort.Order
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Sort.Order.Direction
Represents the direction of the ordering.
|
| Constructor and Description |
|---|
Order(java.lang.String property)
Constructs an order for the given property in ascending order.
|
Order(java.lang.String property,
Sort.Order.Direction direction,
boolean ignoreCase)
Constructs an order for the given property with the given direction.
|
| Modifier and Type | Method and Description |
|---|---|
static Sort.Order |
asc(java.lang.String property)
Creates a new order for the given property in ascending order.
|
static Sort.Order |
asc(java.lang.String property,
boolean ignoreCase)
Creates a new order for the given property in ascending order.
|
static Sort.Order |
desc(java.lang.String property)
Creates a new order for the given property in descending order.
|
static Sort.Order |
desc(java.lang.String property,
boolean ignoreCase)
Creates a new order for the given property in descending order.
|
boolean |
equals(java.lang.Object o) |
Sort.Order.Direction |
getDirection() |
java.lang.String |
getProperty() |
int |
hashCode() |
boolean |
isAscending() |
boolean |
isIgnoreCase() |
public Order(@NonNull
java.lang.String property)
property - The propertypublic Order(@NonNull
java.lang.String property,
@NonNull
Sort.Order.Direction direction,
boolean ignoreCase)
property - The propertydirection - The directionignoreCase - Whether to ignore casepublic boolean isIgnoreCase()
public Sort.Order.Direction getDirection()
public java.lang.String getProperty()
public static Sort.Order desc(java.lang.String property)
property - The propertypublic static Sort.Order asc(java.lang.String property)
property - The propertypublic static Sort.Order desc(java.lang.String property, boolean ignoreCase)
property - The propertyignoreCase - Whether to ignore casepublic static Sort.Order asc(java.lang.String property, boolean ignoreCase)
property - The propertyignoreCase - Whether to ignore casepublic boolean isAscending()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object