net.ontopia.utils
Class LexicalComparator
java.lang.Object
net.ontopia.utils.LexicalComparator
- All Implemented Interfaces:
- Comparator
public class LexicalComparator
- extends Object
- implements Comparator
INTERNAL: Comparator that performs a lexical comparison. It calls the
toString method on the objects and compares the result. It can be
configured to be case insensitive. It is case sensitive by default.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CASE_SENSITIVE
public static final LexicalComparator CASE_SENSITIVE
CASE_INSENSITIVE
public static final LexicalComparator CASE_INSENSITIVE
collator
protected Collator collator
compare
public int compare(Object obj1,
Object obj2)
- Specified by:
compare
in interface Comparator
Copyright © 2000-2012 Ontopia.