Uses of Enum Class
org.springframework.data.domain.Sort.Direction
Package
Description
Central domain abstractions especially to be used in combination with the
Repository
abstraction.Basic interfaces and value objects for histography API.
-
Uses of Sort.Direction in org.springframework.data.domain
Modifier and TypeMethodDescriptionstatic Sort.Direction
Sort.Direction.fromString
(String value) Returns theSort.Direction
enum for the givenString
value.Sort.Order.getDirection()
Returns the order the property shall be sorted for.static Sort.Direction
Returns the enum constant of this class with the specified name.static Sort.Direction[]
Sort.Direction.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic Optional<Sort.Direction>
Sort.Direction.fromOptionalString
(String value) Returns theSort.Direction
enum for the givenString
orOptional.empty()
if it cannot be parsed into an enum value.Modifier and TypeMethodDescriptionstatic Sort
Sort.by
(Sort.Direction direction, String... properties) Creates a newSort
for the givenSort.Direction
and properties.static PageRequest
PageRequest.of
(int pageNumber, int pageSize, Sort.Direction direction, String... properties) Creates a newPageRequest
with sort direction and properties applied.Sort.Order.with
(Sort.Direction direction) Returns a newSort.Order
with the givenSort.Direction
applied.PageRequest.withSort
(Sort.Direction direction, String... properties) ModifierConstructorDescriptionOrder
(Sort.Direction direction, String property) Creates a newSort.Order
instance. if order is null then order defaults toSort.DEFAULT_DIRECTION
Order
(Sort.Direction direction, String property, boolean ignoreCase, Sort.NullHandling nullHandling) Creates a newSort.Order
instance. if order is null then order defaults toSort.DEFAULT_DIRECTION
Order
(Sort.Direction direction, String property, Sort.NullHandling nullHandlingHint) Creates a newSort.Order
instance. if order is null then order defaults toSort.DEFAULT_DIRECTION
-
Uses of Sort.Direction in org.springframework.data.history
Modifier and TypeMethodDescriptionstatic Sort.Direction
RevisionSort.getRevisionDirection
(Sort sort) Returns in which direction to sort revisions for the givenSort
instance.