Class SortDirective.Item

  • Enclosing class:
    SortDirective

    public static final class SortDirective.Item
    extends java.lang.Object
    A single item in a SortDirective. The item defines the ordering for a field within the SortDirective. The ordering can be either ascending or descending, which is determined by the isAscending() method.

    Instances of this class are immutable.

    • Method Detail

      • getField

        public DFField getField()
        Gets the field.
        Returns:
        The field for this item.
      • isAscending

        public boolean isAscending()
        Gets the value of asc/desc flag.
        Returns:
        true if this item imposes the ascending order on its field.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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