Uses of Enum Class
org.springframework.data.domain.Sort.Direction
Packages that use 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
Fields in org.springframework.data.domain declared as Sort.DirectionMethods in org.springframework.data.domain that return Sort.DirectionModifier 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.Methods in org.springframework.data.domain that return types with arguments of type Sort.DirectionModifier and TypeMethodDescriptionstatic Optional<Sort.Direction>
Sort.Direction.fromOptionalString
(String value) Returns theSort.Direction
enum for the givenString
or null if it cannot be parsed into an enum value.Methods in org.springframework.data.domain with parameters of type Sort.DirectionModifier 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
.PageRequest.withSort
(Sort.Direction direction, String... properties) Constructors in org.springframework.data.domain with parameters of type Sort.DirectionModifierConstructorDescriptionOrder
(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
Methods in org.springframework.data.history that return Sort.DirectionModifier and TypeMethodDescriptionstatic Sort.Direction
RevisionSort.getRevisionDirection
(Sort sort) Returns in which direction to sort revisions for the givenSort
instance.