Package de.renebergelt.quiterables
Interface OrderedQueriable<T>
- All Known Subinterfaces:
OrderedGroupedQueriable<T>
Represents a Queriable which has been ordered
- Author:
- René Bergelt
-
Method Summary
Modifier and TypeMethodDescriptionthenBy(ItemFunc<T,Comparable> func)Define a secondary ordering criterion<TComparable>
OrderedQueriable<T>thenBy(ItemFunc<T,TComparable> valueFunc, Comparator<TComparable> comparator)Define a secondary ordering criterion using the given ComparatorthenByDescending(ItemFunc<T,Comparable> func)Define a secondary ordering criterion (descending)<TComparable>
OrderedQueriable<T>thenByDescending(ItemFunc<T,TComparable> valueFunc, Comparator<TComparable> comparator)Define a secondary ordering criterion using the given Comparator (descending)Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface de.renebergelt.quiterables.Queriable
all, average, average, cast, concat, contains, contains, count, count, defaultIfEmpty, distinct, distinct, elementAt, elementAtOrDefault, elementAtOrDefault, except, except, exists, first, first, firstOrDefault, firstOrDefault, firstOrDefault, firstOrDefault, group, groupSingle, intersect, intersect, isEmpty, last, last, lastOrDefault, lastOrDefault, lastOrDefault, max, max, min, min, ofType, orderBy, orderBy, orderByDescending, orderByDescending, reverse, select, selectMany, sequenceEquals, sequenceEquals, single, single, singleOrDefault, singleOrDefault, skip, skipWhile, sum, sum, take, takeWhile, toArray, toList, toMap, toMap, toPrimitiveArray, toSet, union, union, where
-
Method Details
-
thenBy
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 bycomparator- Comparator to compare values for ordering- Returns:
- Ordered queriable
-
thenByDescending
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 bycomparator- Comparator to compare values for ordering- Returns:
- Ordered queriable
-