Class SortOrder


  • public final class SortOrder
    extends java.lang.Object
    Encasulates sort state. There are several conenience methods to simplify usage of the three possible states (unsorted, ascending sorted, descending sorted). PENDING: incomplete.
    • Field Detail

      • ASCENDING

        public static final SortOrder ASCENDING
      • DESCENDING

        public static final SortOrder DESCENDING
      • UNSORTED

        public static final SortOrder UNSORTED
    • Method Detail

      • isSorted

        public boolean isSorted()
        Convenience to check if the order is sorted.
        Returns:
        false if unsorted, true for ascending/descending.
      • isSorted

        public boolean isSorted​(boolean ascending)
      • isAscending

        public boolean isAscending()
        Convenience to check for ascending sort order. PENDING: is this helpful at all?
        Returns:
        true if ascendingly sorted, false for unsorted/descending.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object