All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface collections.ElementSortedCollection

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

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

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


Method Index

 o elementComparator()
Report the Comparator used for ordering

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index