Module spring.data.keyvalue
Class PropertyPathComparator<T>
java.lang.Object
org.springframework.data.keyvalue.core.PropertyPathComparator<T>
- All Implemented Interfaces:
Comparator<T>
- Since:
- 3.1.10
- Author:
- Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PropertyPathComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T>
-
asc
Sort ascending.- Returns:
-
desc
Sort descending.- Returns:
-
nullsFirst
Sort null values first.- Returns:
-
nullsLast
Sort null values last.- Returns:
-