Interface Sorting

All Superinterfaces:
java.lang.Iterable<Order>, java.io.Serializable
All Known Implementing Classes:
SortingImpl

public interface Sorting
extends java.lang.Iterable<Order>, java.io.Serializable
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static class  Sorting.Builder  
  • Field Summary

    Fields
    Modifier and Type Field Description
    static Direction DEFAULT_DIRECTION  
  • Method Summary

    Modifier and Type Method Description
    Sorting and​(Sorting sorting)
    Returns a new Sorting consisting of the Orders of the current Sorting combined with the given ones.
    static Sorting.Builder defaultBuilder()  
    Order getOrderFor​(java.lang.String property)
    Returns the order registered for the given property.
    java.util.List<Order> getOrders()  

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Field Details

    • DEFAULT_DIRECTION

      static final Direction DEFAULT_DIRECTION
  • Method Details

    • and

      Sorting and​(Sorting sorting)
      Returns a new Sorting consisting of the Orders of the current Sorting combined with the given ones.
      Parameters:
      sorting - can be null.
      Returns:
      a new combined sort
    • getOrderFor

      Order getOrderFor​(java.lang.String property)
      Returns the order registered for the given property.
      Parameters:
      property - given property
      Returns:
      the order registered for the given property
    • getOrders

      java.util.List<Order> getOrders()
    • defaultBuilder

      static Sorting.Builder defaultBuilder()