public class SetIndex<T> extends Object implements Index<T>
| Constructor and Description |
|---|
SetIndex() |
SetIndex(Set<? extends T> items) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(T item) |
boolean |
contains(T item) |
boolean |
containsUnchecked(Object item) |
T |
get(int i)
Returns the object associated with a given number.
|
int |
indexOf(T item) |
int |
indexOfUnchecked(Object item) |
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 add(T item)
public int size()
Indexpublic T get(int i)
Indexpublic int indexOfUnchecked(Object item)
indexOfUnchecked in interface Index<T>public boolean containsUnchecked(Object item)
containsUnchecked in interface Index<T>see also the complete user documentation .