Package com.tangosol.util.comparator
Interface EntryAwareComparator<T>
- All Superinterfaces:
Comparator<T>
- All Known Implementing Classes:
ChainedComparator
,EntryComparator
,InverseComparator
,SafeComparator
EntryAwareComparator is an extension to the
Comparator
interface that allows the EntryComparator
to know whether the
underlying comparator expects to compare the corresponding Entries' keys or
values.- Author:
- gg 2007.05.05
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies whether this comparator expects to compare keys or values.Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
isKeyComparator
boolean isKeyComparator()Specifies whether this comparator expects to compare keys or values.- Returns:
- true if Entry keys are expected; false otherwise
-