Class RevisionSort
java.lang.Object
org.springframework.data.domain.Sort
org.springframework.data.history.RevisionSort
- All Implemented Interfaces:
Serializable, Iterable<Sort.Order>, Supplier<Stream<Sort.Order>>, Streamable<Sort.Order>
-
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic RevisionSortasc()Creates aRevisionSortwith ascending order for the revision number property, i.e. more recent revisions will come last.static RevisionSortdesc()Creates aRevisionSortwith descending order for the revision number property, i.e. more recent revisions will come first.static Sort.DirectiongetRevisionDirection(Sort sort) Returns in which direction to sort revisions for the givenSortinstance.Methods inherited from class Sort
and, ascending, by, by, by, by, descending, doReverse, equals, getOrderFor, hashCode, isEmpty, isSorted, isUnsorted, iterator, reverse, sort, toString, unsortedMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
asc
Creates aRevisionSortwith ascending order for the revision number property, i.e. more recent revisions will come last.- Returns:
-
desc
Creates aRevisionSortwith descending order for the revision number property, i.e. more recent revisions will come first.- Returns:
-
getRevisionDirection
Returns in which direction to sort revisions for the givenSortinstance. Defaults toSort.Direction.ASC.- Parameters:
sort- must not be null.- Returns:
-