public interface Index<T> extends Iterable<T>, Serializable
0
to
n-1
.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) |
int |
size()
Returns the number of objects in this index.
|
forEach, iterator, spliterator
int size()
T get(int i)
IndexOutOfBoundsException
- if i < 0
or i >=
size()
.boolean contains(T t)
int indexOf(T t)
boolean containsUnchecked(Object t)
int indexOfUnchecked(Object t)
see also the complete user documentation .