Package com.pullreports.export.request
Class Sort
- Object
-
- com.pullreports.export.request.Sort
-
public class Sort extends Object
A Sort represents one term within the semicolon list of column resource paths (e.g. /tableId@columnId) plus direction term (e.g. asc vs. desc) within the REST API sort parameter or report catalog <export_config> defaultSort attribute.
-
-
Constructor Summary
Constructors Constructor Description Sort(Column column)
Creates a new Sort withSortDirection.ASC
.Sort(Column column, SortDirection direction)
Sort(Column column, SortDirection direction, String originalTerm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Column
getColumn()
SortDirection
getDirection()
Optional<String>
getOriginalTerm()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Sort
public Sort(Column column)
Creates a new Sort withSortDirection.ASC
.- Parameters:
column
- the column for which to sort ascending.
-
Sort
public Sort(Column column, SortDirection direction)
-
Sort
public Sort(Column column, SortDirection direction, String originalTerm)
- Parameters:
column
- The column of the SortTerm.direction
- The direction of the sort.originalTerm
- The original SortTerm string representation within either the sort parameter or <export_config> defaultSort attribute.
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classObject
-
getColumn
public Column getColumn()
-
getDirection
public SortDirection getDirection()
-
getOriginalTerm
public Optional<String> getOriginalTerm()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
-
-