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