Class Ordering.SortOrder

  • Enclosing class:
    Ordering

    public static class Ordering.SortOrder
    extends Ordering
    SortOrder represents a single ORDER BY entity. You can specify either ascending or descending order. The default order is ascending.
    • Method Detail

      • ascending

        @NonNull
        public Ordering ascending()
        Set the order as ascending order.
        Returns:
        the OrderBy object.
      • descending

        @NonNull
        public Ordering descending()
        Set the order as descending order.
        Returns:
        the OrderBy object.