| Modifiers | Name | Description |
|---|---|---|
static Order[] |
EMPTY_ARRAY |
Shared empty array for order clauses. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
equals(Object o)Compares this rule with another one. |
|
public Function<? super T, ? extends U> |
getKeyExtractor()Returns the sort key extractor. |
|
public int |
hashCode()Returns the hash code of this rule. |
|
public boolean |
isAsc()Indicates whether this rule sorts ascending. |
|
public boolean |
isNullsLast()Indicates whether this rule places null values last. |
Shared empty array for order clauses.
Creates an order rule with nulls sorted last.
keyExtractor - the sort key extractorasc - whether to sort ascendingCreates an order rule.
keyExtractor - the sort key extractorasc - whether to sort ascendingnullsLast - whether nulls should be ordered lastCompares this rule with another one.
o - the other objecttrue if both rules are equalReturns the sort key extractor.
Returns the hash code of this rule.
Indicates whether this rule sorts ascending.
true for ascending orderIndicates whether this rule places null values last.
true if nulls are ordered lastCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.