Class NumericTypeComparator
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.NumericTypeComparator
- All Implemented Interfaces:
Comparator<IType>
This
Comparator is used to sort ITypes based on the numerical priority.- Since:
- 2.3
- Version:
- 2.5
-
Constructor Summary
ConstructorsConstructorDescriptionNumericTypeComparator(TypeHelper typeHelper) Creates a newNumericTypeComparator. -
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
-
NumericTypeComparator
Creates a newNumericTypeComparator.- Parameters:
typeHelper- The helper that gives access to the most commontypes
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<IType>
-