Interface OrderedQueriable<T>

All Superinterfaces:
Iterable<T>, Queriable<T>
All Known Subinterfaces:
OrderedGroupedQueriable<T>

public interface OrderedQueriable<T> extends Queriable<T>
Represents a Queriable which has been ordered
Author:
René Bergelt
  • Method Details

    • thenBy

      OrderedQueriable<T> thenBy(ItemFunc<T,​Comparable> func)
      Define a secondary ordering criterion
      Parameters:
      func - Function to retrieve values to order by
      Returns:
      Ordered queriable
    • thenBy

      <TComparable> OrderedQueriable<T> thenBy(ItemFunc<T,​TComparable> valueFunc, Comparator<TComparable> comparator)
      Define a secondary ordering criterion using the given Comparator
      Type Parameters:
      TComparable - Type of the values to compare
      Parameters:
      valueFunc - Function to retrieve values to order by
      comparator - Comparator to compare values for ordering
      Returns:
      Ordered queriable
    • thenByDescending

      OrderedQueriable<T> thenByDescending(ItemFunc<T,​Comparable> func)
      Define a secondary ordering criterion (descending)
      Parameters:
      func - Function to retrieve values to order by
      Returns:
      Ordered queriable
    • thenByDescending

      <TComparable> OrderedQueriable<T> thenByDescending(ItemFunc<T,​TComparable> valueFunc, Comparator<TComparable> comparator)
      Define a secondary ordering criterion using the given Comparator (descending)
      Type Parameters:
      TComparable - Type of the values to compare
      Parameters:
      valueFunc - Function to retrieve values to order by
      comparator - Comparator to compare values for ordering
      Returns:
      Ordered queriable