| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | modifiable
Whether or not the list is modifiable. |
| pack-priv static final long | serialVersionUID
serialVersionUID.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(final T
element to be appended to this list element)Overrides java. Implements java. Appends the specified element to the end of this list. |
| public void | add(final int
index at which the specified element is to be inserted index, final T element to be inserted element)Overrides java. Implements java. Inserts the specified element at the specified position in this list. |
| public boolean | addAll(final Collection<? extends T>
collection containing elements to be added to this list c)Overrides java. Implements java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. |
| public boolean | addAll(final int
index at which to insert the first element from the
specified collection index, final Collection<? extends T> collection containing elements to be added to this list c)Overrides java. Implements java. Inserts all of the elements in the specified collection into this list, starting at the specified position. |
| public void | clear()
Overrides java. Implements java. Removes all of the elements from this list. |
| public boolean | equals(final Object
the object to be compared for equality with this list o)Overrides java. Implements java. Compares the specified object with this list for equality. |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this list. |
| public Iterator | iterator()
Overrides java. Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public ListIterator | listIterator()
Overrides java. Implements java. Returns a list iterator over the elements in this list (in proper sequence). |
| pack-priv void | |
| public boolean | remove(final Object
element to be removed from this list, if present o)Overrides java. Implements java. Removes the first occurrence of the specified element from this list, if it is present. |
| public T | remove(final int
the index of the element to be removed index)Overrides java. Implements java. Removes the element at the specified position in this list. |
| public boolean | removeAll(final Collection<?>
collection containing elements to be removed from this list c)Overrides java. Implements java. Removes from this list all of its elements that are contained in the specified collection. |
| public boolean | retainAll(final Collection<?>
collection containing elements to be retained in this list c)Overrides java. Implements java. Retains only the elements in this list that are contained in the specified collection. |
| public T | set(final int
index of the element to replace index, final T element to be stored at the specified position element)Overrides java. Implements java. Replaces the element at the specified position in this list with the specified element. |
| modifiable | back to summary |
|---|---|
| pack-priv boolean modifiable Whether or not the list is modifiable. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides java. serialVersionUID. | |
| PotentiallyUnmodifiableList | back to summary |
|---|---|
| pack-priv PotentiallyUnmodifiableList() Constructor. | |
| PotentiallyUnmodifiableList | back to summary |
|---|---|
| pack-priv PotentiallyUnmodifiableList(final int sizeHint) Constructor.
| |
| PotentiallyUnmodifiableList | back to summary |
|---|---|
| pack-priv PotentiallyUnmodifiableList(final Collection<T> collection) Constructor.
| |
| add | back to summary |
|---|---|
| public boolean add(final T element) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list.
| |
| add | back to summary |
|---|---|
| public void add(final int index, final T element) Overrides java. Implements java. Doc from java. Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(final Collection<? extends T> c) Overrides java. Implements java. Doc from java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.)
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(final int index, final Collection<? extends T> c) Overrides java. Implements java. Doc from java. Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator.
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this list. The list will be empty after this call returns.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Implements java. Doc from java. Compares the specified object with this list for equality. Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this list. The hash code of a list is defined to be the result of the following calculation:
This ensures that list1.equals(list2) implies that
list1.hashCode()==list2.hashCode() for any two lists,
list1 and list2, as required by the general
contract of Object#hashCode.
| |
| 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. | |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper sequence). The returned list iterator is fail-fast.
| |
| makeUnmodifiable | back to summary |
|---|---|
| pack-priv void makeUnmodifiable() Make this list unmodifiable. | |
| remove | back to summary |
|---|---|
| public boolean remove(final Object o) Overrides java. Implements java. Doc from java. Removes the first occurrence of the specified element from this list,
if it is present. If the list does not contain the element, it is
unchanged. More formally, removes the element with the lowest index
| |
| remove | back to summary |
|---|---|
| public T remove(final int index) Overrides java. Implements java. Doc from java. Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(final Collection<?> c) Overrides java. Implements java. Doc from java. Removes from this list all of its elements that are contained in the specified collection.
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(final Collection<?> c) Overrides java. Implements java. Doc from java. Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all of its elements that are not contained in the specified collection.
| |
| set | back to summary |
|---|---|
| public T set(final int index, final T element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element.
| |