Class OrderSpecifier<T extends Comparable>

java.lang.Object
com.querydsl.core.types.OrderSpecifier<T>
Type Parameters:
T - related expression type
All Implemented Interfaces:
Serializable

@Immutable public class OrderSpecifier<T extends Comparable> extends Object implements Serializable
OrderSpecifier represents an order-by-element in a Query instance
Author:
tiwe
See Also:
  • Constructor Details

  • Method Details

    • getOrder

      public Order getOrder()
      Get the order of this specifier
      Returns:
      order
    • isAscending

      public boolean isAscending()
      Get whether the order is ascending or not
      Returns:
      ascending order
    • getTarget

      public Expression<T> getTarget()
      Get the target expression of this OrderSpecifier
      Returns:
      target expression
    • getNullHandling

      public OrderSpecifier.NullHandling getNullHandling()
      Get the null handling
      Returns:
      null handling
    • nullsFirst

      public OrderSpecifier<T> nullsFirst()
      Create a new OrderSpecifier instance with null first enabled
      Returns:
      new instance with null first enabled
    • nullsLast

      public OrderSpecifier<T> nullsLast()
      Create a new OrderSpecifier instance with nulls last enabled
      Returns:
      new instance with nulls last enabled
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object