All Packages Class Hierarchy This Package Previous Next Index
Interface collections.Keyed
- public interface interface Keyed
- extends Serializable
Keyed is an interface most useful in association with SortedCollections.
Any class implementing Keyed contains method key, that returns
an object serving as a sorting key for the rest of the object.
The DefaultComparator class checks to see if its arguments
are Keyed, and if so uses the keys as the basis for comparison.
-
key()
- Return an object serving as a comparison key
key
public abstract Object key()
- Return an object serving as a comparison key
All Packages Class Hierarchy This Package Previous Next Index