Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


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

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.NumericTypeComparator

All Implemented Interfaces:
java.util.Comparator<IType>

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

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

Since:
2.3
Version:
2.3
Author:
Pascal Filion

Field Summary
private  TypeHelper typeHelper
          The helper that gives access to the most common types.

 

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

 

Field Detail

typeHelper

private final TypeHelper typeHelper
The helper that gives access to the most common types.

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>

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.