E
- type of the contained elementspublic interface ImmutableList<E>
extends java.lang.Iterable<E>
Modifier and Type | Method and Description |
---|---|
E |
get(java.math.BigInteger index)
Returns the element at the specified position in this list.
|
E |
get(long index)
Returns the element at the specified position in this list.
|
java.math.BigInteger |
size() |
E get(java.math.BigInteger index)
index
- index of the element to returnjava.lang.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size())java.math.BigInteger size()
E get(long index)
index
- index of the element to return. Allows access of elements at
indices fitting in a long.java.lang.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size())