net.cscott.jutil
public abstract class Indexer<T> extends Object
Version: $Id: Indexer.java,v 1.2 2006-10-30 19:58:05 cananian Exp $
Method Summary | |
---|---|
T | getByID(int id) Provides a reverse mapping for the index returned by
getID . |
abstract int | getID(T o) Returns the "small" integer uniquely associated with
o in this .
|
boolean | implementsReverseMapping() Tells user whether this particular Indexer implements
the getByID() method. |
getID
. The constraint is that
getByID(getID(o))
must equal o
for all objects indexed by this
.Throws: UnsupportedOperationException if this functionality
is not supported by this
.
o
in this
.
o
is a member of the set of
objects indexed by this
o
from a densely-packed, non-negative
set of integers whose smallest element is close to zero.getByID()
method.