Class QSort
java.lang.Object
org.springframework.data.domain.Sort
org.springframework.data.querydsl.QSort
- All Implemented Interfaces:
Serializable, Iterable<Sort.Order>, Supplier<Stream<Sort.Order>>, Streamable<Sort.Order>
Sort option for queries that wraps a Querydsl
OrderSpecifier.- Author:
- Thomas Darimont, Christoph Strobl, Mark Paluch
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Sort
Sort.Direction, Sort.NullHandling, Sort.Order, Sort.TypedSort<T> -
Field Summary
Fields inherited from class Sort
DEFAULT_DIRECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand(com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers) Returns a newQSortconsisting of theOrderSpecifiers of the currentQSortcombined with the ones from the givenQSort.static QSortby(com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers) List<com.querydsl.core.types.OrderSpecifier<?>> booleanisEmpty()Returns whether the currentStreamableis empty.static QSortunsorted()Methods inherited from class Sort
and, ascending, by, by, by, by, descending, doReverse, equals, getOrderFor, hashCode, isSorted, isUnsorted, iterator, reverse, sort, toStringMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
QSort
public QSort(com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers) Creates a newQSortinstance with the givenOrderSpecifiers.- Parameters:
orderSpecifiers- must not be null .
-
QSort
-
-
Method Details
-
by
-
unsorted
-
isEmpty
public boolean isEmpty()Description copied from interface:StreamableReturns whether the currentStreamableis empty.- Specified by:
isEmptyin interfaceStreamable<Sort.Order>- Overrides:
isEmptyin classSort- Returns:
-
getOrderSpecifiers
- Returns:
- the orderSpecifier
-
and
-
and
-
and
-