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>
ThisComparatoris used to sortITypesbased 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 intcompare(IType type1, IType type2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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:
comparein interfaceComparator<IType>
-
-