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, wait
forEach, spliterator
public int size()
Index
public T get(int i)
Index
public 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 .