Class 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 Detail

      • Sort

        public Sort​(Column column)
        Creates a new Sort with SortDirection.ASC.
        Parameters:
        column - the column for which to sort ascending.
      • 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 class Object
      • getColumn

        public Column getColumn()
      • getOriginalTerm

        public Optional<String> getOriginalTerm()
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object