Package com.illumon.iris.db.tables
Class SortPair
java.lang.Object
com.illumon.iris.db.tables.SortPair
- All Implemented Interfaces:
Serializable
A pair representing a column to sort by and its direction.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SortPair
Create an ascending SortPair for name.static SortPair[]
ascendingPairs
(String... names) Create an array of ascending SortPair for names.static SortPair
descending
(String name) Create an descending SortPair for name.static SortPair[]
descendingPairs
(String... names) Create an array of descending SortPair for names.boolean
getOrder()
int
hashCode()
toString()
-
Field Details
-
ZERO_LENGTH_SORT_PAIR_ARRAY
-
-
Constructor Details
-
SortPair
-
-
Method Details
-
ascending
Create an ascending SortPair for name.- Parameters:
name
- the column name to sort by- Returns:
- an ascending SortPair for name
-
ascendingPairs
Create an array of ascending SortPair for names.- Parameters:
names
- the column names to sort by- Returns:
- an ascending SortPair array for names
-
descending
Create an descending SortPair for name.- Parameters:
name
- the column name to sort by- Returns:
- an descending SortPair for name
-
descendingPairs
Create an array of descending SortPair for names.- Parameters:
names
- the column names to sort by- Returns:
- an descending SortPair array for names
-
getColumn
- Returns:
- the column name for this SortPair.
-
getOrder
- Returns:
- the SortingOrder for this pair.
-
equals
-
hashCode
public int hashCode() -
toString
-