Interface EntryAwareComparator<T>

All Superinterfaces:
Comparator<T>
All Known Implementing Classes:
ChainedComparator, EntryComparator, InverseComparator, SafeComparator

public interface EntryAwareComparator<T> extends Comparator<T>
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 Details

    • isKeyComparator

      boolean isKeyComparator()
      Specifies whether this comparator expects to compare keys or values.
      Returns:
      true if Entry keys are expected; false otherwise