public class Order extends Object implements Serializable
Constructor and Description |
---|
Order()
The default constructor.
|
Order(Column column)
The constructor with the column to sort.
|
Order(Column column,
boolean ascending)
The constructor with the column to sort and whether to sort in ascending order.
|
Order(Column column,
boolean ascending,
boolean caseSensitive)
The constructor with the column to sort, whether to sort in ascending order, and whether the sort is
case-sensitive.
|
Modifier and Type | Method and Description |
---|---|
Order |
ascending()
Sets the sort order as ascending.
|
static Order |
ascending(Column column)
Creates an
Order object with the specified column sorted in ascending order. |
static Order |
ascending(Column column,
boolean caseSensitive)
Creates an
Order object with the specified column sorted in ascending order and indicates whether it
is case-sensitive. |
Order |
caseInsensitive()
Sets the sort as case-insensitive.
|
Order |
caseSensitive()
Sets the sort as case-sensitive.
|
Order |
column(Column column)
Sets the column to sort.
|
Order |
descending()
Sets the sort order as descending.
|
static Order |
descending(Column column)
Creates an
Order object with the specified column sorted in descending order. |
static Order |
descending(Column column,
boolean caseSensitive)
Creates an
Order object with the specified column sorted in descending order and indicates whether
it is case-sensitive. |
Column |
getColumn()
Gets the column to sort.
|
boolean |
isAscending()
Indicates whether to sort in ascending order.
|
boolean |
isCaseSensitive()
Indicates whether the sort is case-sensitive.
|
boolean |
isDescending()
Indicates whether to sort in descending order.
|
static Order |
order(Column column,
boolean ascending)
Creates an
Order object with the specified column and indicates whether to sort in ascending order. |
static Order |
order(Column column,
boolean ascending,
boolean caseSensitive)
Creates an
Order object with the specified column and indicates whether to sort in ascending order
and indicates whether it is case-sensitive. |
void |
setAscending(boolean ascending)
Sets whether to sort in ascending order.
|
void |
setCaseSensitive(boolean caseSensitive)
Sets whether the sort is case-sensitive.
|
void |
setColumn(Column column)
Sets the column to sort.
|
String |
toString() |
public Order()
public Order(Column column)
column
- The column to sort.public Order(Column column, boolean ascending)
column
- The column to sort.ascending
- Indicates whether to sort in ascending order.public Order(Column column, boolean ascending, boolean caseSensitive)
column
- The column to sort.ascending
- Indicates whether to sort in ascending order.caseSensitive
- Indicates whether the sort is case-sensitive.public Column getColumn()
public void setColumn(Column column)
column
- The column to sort.public void setAscending(boolean ascending)
false
.ascending
- Indicates whether to sort in ascending order.public boolean isDescending()
true
.boolean
value that indicates whether to sort in descending order.public boolean isAscending()
false
.boolean
value that indicates whether to sort in ascending order.public boolean isCaseSensitive()
true
.boolean
value that indicates whether the sort is case-sensitive.public void setCaseSensitive(boolean caseSensitive)
true
.caseSensitive
- Indicates whether the sort is case-sensitive.public Order ascending()
public Order descending()
public Order caseSensitive()
public Order caseInsensitive()
public Order column(Column column)
public static Order order(Column column, boolean ascending)
Order
object with the specified column and indicates whether to sort in ascending order.Order
object with the specified column and indicates whether to sort in ascending order.public static Order order(Column column, boolean ascending, boolean caseSensitive)
Order
object with the specified column and indicates whether to sort in ascending order
and indicates whether it is case-sensitive.Order
object with the specified column and indicates whether to sort in ascending order
and indicates whether it is case-sensitive.public static Order ascending(Column column)
Order
object with the specified column sorted in ascending order.Order
object with the specified column sorted in ascending order.public static Order ascending(Column column, boolean caseSensitive)
Order
object with the specified column sorted in ascending order and indicates whether it
is case-sensitive.Order
object with the specified column sorted in ascending order and indicates whether it
is case-sensitive.public static Order descending(Column column)
Order
object with the specified column sorted in descending order.Order
object with the specified column sorted in descending order.public static Order descending(Column column, boolean caseSensitive)
Order
object with the specified column sorted in descending order and indicates whether
it is case-sensitive.Order
object with the specified column sorted in descending order and indicates whether
it is case-sensitive.<i>Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA</i>