|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReadOnlyArray<E>
A wrapper type typically backed by an array that provides read-only access to the elements of the array.
SequenceFactory
Method Summary | |
---|---|
ReadOnlyArray<E> |
clone()
Returns a clone of this ReadOnlyArray which is backed by a cloned array. |
E |
get(int index)
Returns the element at the given index in the underlying array. |
int |
length()
Returns the number of elements held in this structure. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
E get(int index) throws ArrayIndexOutOfBoundsException
index
- The index of the element to return.
ArrayIndexOutOfBoundsException
- If the given index is out of range
(index < 0 || index >= length()
).int length()
ReadOnlyArray<E> clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |