Interface SortOptions<T extends Enum<?>>

  • Type Parameters:
    T -

    public interface SortOptions<T extends Enum<?>>
    • Method Detail

      • isAscending

        boolean isAscending()
        Returns true if sort order is ascending or false if it is descending.
        Returns:
        true if sort order is ascending, false otherwise
      • setAscending

        void setAscending​(boolean ascending)
        Sets the sort order. If set to true, sort order is set to ascending, otherwise it is descending.
        Parameters:
        ascending - the sort order to set, true for ascending or false for descending
      • getOption

        T getOption()
        Returns the sort option.
        Returns:
        the sort option
      • setOption

        void setOption​(T sort)
        Sets the sort option.
        Parameters:
        sort - the sort option to set