EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference

org.eclipse.persistence.jpa.jpql.tools
Class NumericTypeComparator

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.tools.NumericTypeComparator
All Implemented Interfaces:
java.util.Comparator<IType>

public final class NumericTypeComparator
extends java.lang.Object
implements java.util.Comparator<IType>

This Comparator is used to sort ITypes based on the numerical priority.

Version:
2.5
Author:
Pascal Filion
Since:
2.3

Constructor Summary
NumericTypeComparator(TypeHelper typeHelper)
          Creates a new NumericTypeComparator.
 
Method Summary
 int compare(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
 

Constructor Detail

NumericTypeComparator

public NumericTypeComparator(TypeHelper typeHelper)
Creates a new NumericTypeComparator.

Parameters:
typeHelper - The helper that gives access to the most common types
Method Detail

compare

public int compare(IType type1,
                   IType type2)

Specified by:
compare in interface java.util.Comparator<IType>

EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference