Class SortCriteria


  • public final class SortCriteria
    extends java.lang.Object
    Defines sort criteria that determines whether digital assets will be sorted in ascending or descending order.
    Since:
    1.6.0
    • Constructor Summary

      Constructors 
      Constructor Description
      SortCriteria​(SortBy sortBy, boolean ascending)
      Instantiates a new sort criteria.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SortBy getSortBy()
      Returns the sort by.
      boolean isAscending()
      Checks whether sorting is ascending.
      void setAscending​(boolean ascending)
      Specifies asset sorting is ascending.
      void setSortBy​(SortBy sortBy)
      Specifies the sort by.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SortCriteria

        public SortCriteria​(SortBy sortBy,
                            boolean ascending)
        Instantiates a new sort criteria.
        Parameters:
        sortBy - the sort by
        ascending - ascending order
    • Method Detail

      • getSortBy

        public SortBy getSortBy()
        Returns the sort by.
      • setSortBy

        public void setSortBy​(SortBy sortBy)
        Specifies the sort by.
      • isAscending

        public boolean isAscending()
        Checks whether sorting is ascending.
      • setAscending

        public void setAscending​(boolean ascending)
        Specifies asset sorting is ascending.