public class HashIndex<T> extends Object implements Index<T>
| Constructor and Description |
|---|
HashIndex(Set<T> items) |
HashIndex(T... items) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(T t) |
boolean |
containsUnchecked(Object t) |
T |
get(int i)
Returns the object associated with a given number.
|
int |
indexOf(T t) |
int |
indexOfUnchecked(Object t) |
Iterator<T> |
iterator() |
int |
size()
Returns the number of objects in this index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic int size()
Indexpublic T get(int i)
Indexpublic boolean containsUnchecked(Object t)
containsUnchecked in interface Index<T>public int indexOfUnchecked(Object t)
indexOfUnchecked in interface Index<T>see also the complete user documentation .