org.apache.jdo.impl.sco
Class Freezer.AbsoluteOrdering

java.lang.Object
  extended byorg.apache.jdo.impl.sco.Freezer.AbsoluteOrdering
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
Freezer

static class Freezer.AbsoluteOrdering
extends java.lang.Object
implements java.util.Comparator

This class is the Comparator to impose an absolute ordering on instances of PersistenceCapable, wrapper, and mutable sco types.


Constructor Summary
(package private) Freezer.AbsoluteOrdering()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Implement an absolute ordering comparison for persistence capable, wrapper, and mutable sco types.
 
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

Freezer.AbsoluteOrdering

Freezer.AbsoluteOrdering()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Implement an absolute ordering comparison for persistence capable, wrapper, and mutable sco types.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - the first parameter.
o2 - the second parameter.
Returns:
-1, 0, or 1 if the first parameter is less that, equal to, or greater than the second parameter.