| Modifier and Type | Field and Description |
|---|---|
| private final Collection |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public T | get(int
index of the element to return index)Implements java. Returns the element at the specified position in this list. |
| public boolean | |
| public int | |
| public Object[] | toArray()
Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| delegate | back to summary |
|---|---|
| private final Collection<T> delegate | |
| CollectionDelegate | back to summary |
|---|---|
| pack-priv CollectionDelegate(Collection<T> coll) | |
| get | back to summary |
|---|---|
| public T get(int index) Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() 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 even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs. | |