public interface ListView<E>
extends java.lang.Iterable<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object elem)
Returns true if a particular element is contained in this list.
|
E |
get(int idx)
Get the element at a particular index, or null if there is no such
element.
|
java.util.Iterator<E> |
iterator()
Return an iterator over all elements in this list.
|
int |
size()
Get the number of elements in this list.
|
java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>E get(int idx)
idx - index of the elementint size()
boolean contains(java.lang.Object elem)
elem - element to search for