E
- type of the elementspublic abstract class AbstractImmutableList<E> extends java.lang.Object implements ImmutableList<E>
Constructor and Description |
---|
AbstractImmutableList() |
Modifier and Type | Method and Description |
---|---|
E |
get(long index)
Returns the element at the specified position in this list.
|
java.util.Iterator<E> |
iterator() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, size
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
public java.lang.String toString()
toString
in class java.lang.Object
public E get(long index)
ImmutableList
get
in interface ImmutableList<E>
index
- index of the element to return. Allows access of elements at
indices fitting in a long.