This class represents a unique index which can be used instead of
java.lang.Integer for primitive data types collections.
For example:[code]
class SparseVector {
FastMap _elements = new FastMap();
...
}[/code]
Unicity is guaranteed and direct equality (== ) can be used
in place of object equality (Index.equals(Object) ).
Indices have no adverse effect on the garbage collector (persistent
instances), but should not be used for large integer values as that
would increase the permanent memory footprint significantly.
RTSJ: Instance of this classes are allocated in
ImmortalMemory . Indices can be pre-allocated at start-up
to avoid run-time allocation delays by configuring
Index.INITIAL_FIRST and/or
Index.INITIAL_LAST or through
Index.setMinimumRange .
author: Jean-Marie Dautelle version: 5.1, July 26, 2007 |