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
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface eu.bandm.tools.ops.Index
comparator, enumerate, isEmpty
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
HashIndex
-
HashIndex
-
-
Method Details
-
size
public int size()Description copied from interface:Index
Returns the number of objects in this index. This number is nonnegative. -
get
Description copied from interface:Index
Returns the object associated with a given number. -
contains
-
containsUnchecked
- Specified by:
containsUnchecked
in interfaceIndex<T>
-
indexOf
-
indexOfUnchecked
- Specified by:
indexOfUnchecked
in interfaceIndex<T>
-
iterator
-
add
-
toString
-