Class NumericTypeComparator
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.NumericTypeComparator
-
- All Implemented Interfaces:
Comparator<IType>
public final class NumericTypeComparator extends Object implements Comparator<IType>
ThisComparator
is used to sortITypes
based on the numerical priority.- Since:
- 2.3
- Version:
- 2.5
- Author:
- Pascal Filion
-
-
Constructor Summary
Constructors Constructor Description NumericTypeComparator(TypeHelper typeHelper)
Creates a newNumericTypeComparator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(IType type1, IType type2)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
NumericTypeComparator
public NumericTypeComparator(TypeHelper typeHelper)
Creates a newNumericTypeComparator
.- Parameters:
typeHelper
- The helper that gives access to the most commontypes
-
-
Method Detail
-
compare
public int compare(IType type1, IType type2)
- Specified by:
compare
in interfaceComparator<IType>
-
-