All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface collections.KeySortedCollection

public interface interface KeySortedCollection
extends Collection
KeySorted is a mixin interface for Collections that are always in sorted order with respect to a Comparator held by the Collection.

KeySorted Collections guarantee that enumerations appear in sorted order; that is if a and b are two Keys obtained in succession from keys().nextElement(), that

 elementComparator().compare(a, b) <= 0.
 


Method Index

 o keyComparator()
Report the Comparator used for ordering

Methods

 o keyComparator
 public abstract Comparator keyComparator()
Report the Comparator used for ordering


All Packages  Class Hierarchy  This Package  Previous  Next  Index