net.sf.farrago.type.runtime
Class CharStringComparator
java.lang.Object
net.sf.farrago.type.runtime.CharStringComparator
- All Implemented Interfaces:
- Comparator
public class CharStringComparator
- extends Object
- implements Comparator
A very slow, generic comparator for two objects with valid toString()
methods. It implements SQL character comparison semantics (rtrim before
compare).
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/type/runtime/CharStringComparator.java#12 $
- Author:
- John V. Sichi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharStringComparator
public CharStringComparator()
compareCharStrings
public static final int compareCharStrings(Object o1,
Object o2)
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator