Package com.cedarsoftware.util
Class CompactMap.CompactMapComparator
java.lang.Object
com.cedarsoftware.util.CompactMap.CompactMapComparator
- All Implemented Interfaces:
Comparator<Object>
- Enclosing class:
CompactMap<K,
V>
Comparator implementation for CompactMap key ordering.
Provides comparison logic that:
- Handles case sensitivity for String keys
- Supports natural or reverse ordering
- Maintains consistent ordering for different key types
- Properly handles null keys (always last)
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CompactMapComparator
public CompactMapComparator(boolean caseInsensitive, boolean reverse)
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Object>
-
toString
-