| Modifier and Type | Field and Description |
|---|---|
| protected Object | |
| protected int | n
Arrays are fixed size; precompute. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | get(int
index of the element to return i)Overrides java. Implements java. |
| public boolean | isEmpty()
Overrides java. Implements java. true if this list contains no elements.
|
| public Iterator | iterator()
Overrides java. Implements java. |
| public int | size()
Overrides java. Implements java. |
| public Object[] | toArray()
Overrides java. Implements java. |
| array | back to summary |
|---|---|
| protected Object array | |
| n | back to summary |
|---|---|
| protected int n Arrays are fixed size; precompute. | |
| ArrayWrappedInList | back to summary |
|---|---|
| public ArrayWrappedInList(Object array) | |
| get | back to summary |
|---|---|
| public Object get(int i) Overrides java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence. The returned iterator is fail-fast.
| |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of elements in this list.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |