Class Queryable.Order<T,​U extends Comparable<? super U>>

  • Type Parameters:
    T - the type of element from Queryable instance
    U - the type of field to sort
    Enclosing interface:
    Queryable<T>

    public static class Queryable.Order<T,​U extends Comparable<? super U>>
    extends Object
    Represents an order rule
    Since:
    4.0.0
    • Constructor Detail

      • Order

        public Order​(Function<? super T,​? extends U> keyExtractor,
                     boolean asc)
      • Order

        public Order​(Function<? super T,​? extends U> keyExtractor,
                     boolean asc,
                     boolean nullsLast)
    • Method Detail

      • getKeyExtractor

        public Function<? super T,​? extends U> getKeyExtractor()
      • isAsc

        public boolean isAsc()
      • isNullsLast

        public boolean isNullsLast()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object