public interface SimpleList<T> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
T |
getItem(int index)
The n-th element in the list, where n is the supplied index.
|
int |
length()
The number of items in the list.
|
forEach, iterator, spliterator
int length()
T getItem(int index)
index
- The index of the item to return.