Package com.illumon.iris.db.tables
Class SortPair
java.lang.Object
com.illumon.iris.db.tables.SortPair
- All Implemented Interfaces:
Serializable
public class SortPair extends Object implements Serializable
A pair representing a column to sort by and its direction.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static SortPair[]
ZERO_LENGTH_SORT_PAIR_ARRAY
-
Method Summary
Modifier and Type Method Description static SortPair
ascending(String name)
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
equals(Object o)
String
getColumn()
SortingOrder
getOrder()
int
hashCode()
String
toString()
-
Field Details
-
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
-