public class ArrayIndex<T> extends Object implements Index<T>
| Constructor and Description |
|---|
ArrayIndex(Comparator<? super T> order,
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() |
static <T extends Comparable<? super T>> |
natural(T... items) |
int |
size()
Returns the number of objects in this index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ArrayIndex(Comparator<? super T> order, T... items)
public static <T extends Comparable<? super T>> ArrayIndex<T> natural(T... items)
public int size()
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 .