net.wotonomy.datastore
Class DefaultComparator

java.lang.Object
  extended by net.wotonomy.datastore.DefaultComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator

public class DefaultComparator
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

DefaultComparator exists to compare basic java primitive wrappers, since these classes don't implement Comparable in jdk 1.1.x. Also uses ValueConverter to try to match types for comparison.

See Also:
Serialized Form

Constructor Summary
DefaultComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComparator

public DefaultComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object


Copyright © 2006 null. All Rights Reserved.