Class OrderImpl.Item

  • Enclosing class:
    OrderImpl

    public static final class OrderImpl.Item
    extends java.lang.Object
    Inner class for order items to handel field and its order direction together.
    • Constructor Summary

      Constructors 
      Constructor Description
      Item​(Field field)
      Construct order item with given field and ascending order.
      Item​(Field field, OrderDirection direction)
      Construct order item with given field and direction.
    • Constructor Detail

      • Item

        public Item​(Field field)
        Construct order item with given field and ascending order.
        Parameters:
        field - The field to order by.
      • Item

        public Item​(Field field,
                    OrderDirection direction)
        Construct order item with given field and direction.
        Parameters:
        field - The field to order by.
        direction - The order direction.
    • Method Detail

      • getField

        public Field getField()
        Gets the field to order by.
        Returns:
        The field to order by.
      • getDirection

        public OrderDirection getDirection()
        Gets the order direction.
        Returns:
        The order direction.