Package net.ontopia.utils
Class LexicalComparator
java.lang.Object
net.ontopia.utils.LexicalComparator
- All Implemented Interfaces:
Comparator<Object>
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LexicalComparatorstatic final LexicalComparatorprotected Collator -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
CASE_SENSITIVE
-
CASE_INSENSITIVE
-
collator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Object>
-