Package com.querydsl.collections
Class PathComparator<T,V extends Comparable<V>>
java.lang.Object
com.querydsl.collections.PathComparator<T,V>
- Type Parameters:
T- type of the path rootV- type of value being matched
- All Implemented Interfaces:
Comparator<T>
Compares two beans based on the values at a specific path.
- Author:
- Jeroen van Schagen, tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionPathComparator(com.querydsl.core.types.Path<V> comparingPath) PathComparator(com.querydsl.core.types.Path<V> comparingPath, Function<T, V> accessor) -
Method Summary
Modifier and TypeMethodDescriptionintstatic <T,V extends Comparable<V>>
PathComparator<T,V> pathComparator(com.querydsl.core.types.Path<V> comparingPath) 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
-
PathComparator
-
PathComparator
-
-
Method Details
-
pathComparator
public static <T,V extends Comparable<V>> PathComparator<T,V> pathComparator(com.querydsl.core.types.Path<V> comparingPath) -
compare
- Specified by:
comparein interfaceComparator<T>
-