Package eu.bandm.tools.ops
Class HashIndex<T>
java.lang.Object
eu.bandm.tools.ops.HashIndex<T>
- All Implemented Interfaces:
Index<T>,Serializable,Iterable<T>
An index where the look-up by number is accelerated by hashing.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.bandm.tools.ops.Index
comparator, enumerate, isEmptyMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
HashIndex
-
HashIndex
-
-
Method Details
-
size
public int size()Description copied from interface:IndexReturns the number of objects in this index. This number is nonnegative. -
get
Description copied from interface:IndexReturns the object associated with a given number. -
contains
-
containsUnchecked
- Specified by:
containsUncheckedin interfaceIndex<T>
-
indexOf
-
indexOfUnchecked
- Specified by:
indexOfUncheckedin interfaceIndex<T>
-
iterator
-
add
-
toString
-