It is not permitted to add objects to a RoleUnresolvedList that are
not instances of RoleUnresolved. This will produce an IllegalArgumentException
when calling methods in this class, or when using listIterator and add or set.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RoleUnresolvedList(int
initial capacity initialCapacity)Constructs an empty RoleUnresolvedList with the initial capacity specified. |
| public | RoleUnresolvedList(List<RoleUnresolved>
the list)List that defines the initial contents of
the new RoleUnresolvedList.Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(RoleUnresolved
the unresolved role to be added. role)Overrides java. Implements java. Adds the RoleUnresolved specified as the last element of the list. |
| public void | add(int
The position in the list where the new
RoleUnresolved object is to be inserted. index, RoleUnresolved The RoleUnresolved object to be inserted. role)Overrides java. Implements java. Inserts the unresolved role specified as an element at the position specified. |
| public boolean | add(Object o)
Overrides java. Implements java. Appends the specified element to the end of this list. |
| public void | add(int index, Object element)
Overrides java. Implements java. Inserts the specified element at the specified position in this list. |
| public boolean | Returns: true if this list changed as a result of the call.Elements to be inserted into the list
(can be null). roleList)Appends all the elements in the RoleUnresolvedList specified to the end of the list, in the order in which they are returned by the Iterator of the RoleUnresolvedList specified. |
| public boolean | Returns: true if this list changed as a result of the call.Position at which to insert the first element from the
RoleUnresolvedList specified. index, RoleUnresolvedList Elements to be inserted into the list. roleList)Inserts all of the elements in the RoleUnresolvedList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the RoleUnresolvedList specified. |
| public boolean | addAll(Collection<?> 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(int index, Collection<?> c)
Overrides java. Implements java. Inserts all of the elements in the specified collection into this list, starting at the specified position. |
| public List | Returns: aList<RoleUnresolved> whose contents
reflect the contents of this RoleUnresolvedList.Return a view of this list as a |
| private static void | |
| private static void | checkTypeSafe(Collection<?> c)
IllegalArgumentException if c contains any non-RoleUnresolved objects. |
| public void | set(int
The position specified. index, RoleUnresolved The value to which the unresolved role element
should be set. role)Overrides java. Implements java. Sets the element at the position specified to be the unresolved role specified. |
| public Object | set(int index, Object element)
Overrides java. Implements java. Replaces the element at the specified position in this list with the specified element. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| RoleUnresolvedList | back to summary |
|---|---|
| public RoleUnresolvedList() Constructs an empty RoleUnresolvedList. | |
| RoleUnresolvedList | back to summary |
|---|---|
| public RoleUnresolvedList(int initialCapacity) Constructs an empty RoleUnresolvedList with the initial capacity specified.
| |
| RoleUnresolvedList | back to summary |
|---|---|
| public RoleUnresolvedList(List<RoleUnresolved> list) throws IllegalArgumentException Constructs a
| |
| add | back to summary |
|---|---|
| public void add(RoleUnresolved role) throws IllegalArgumentException Overrides java. Implements java. Adds the RoleUnresolved specified as the last element of the list.
| |
| add | back to summary |
|---|---|
| public void add(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException Overrides java. Implements java. Inserts the unresolved role specified as an element at the position specified. Elements with an index greater than or equal to the current position are shifted up.
| |
| add | back to summary |
|---|---|
| public boolean add(Object o) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list.
| |
| add | back to summary |
|---|---|
| public void add(int index, Object 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(RoleUnresolvedList roleList) throws IndexOutOfBoundsException Appends all the elements in the RoleUnresolvedList specified to the end of the list, in the order in which they are returned by the Iterator of the RoleUnresolvedList specified.
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, RoleUnresolvedList roleList) throws IllegalArgumentException, IndexOutOfBoundsException Inserts all of the elements in the RoleUnresolvedList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the RoleUnresolvedList specified.
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<?> 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(int index, Collection<?> 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.
| |
| asList | back to summary |
|---|---|
| public List Return a view of this list as a
| |
| checkTypeSafe | back to summary |
|---|---|
| private static void checkTypeSafe(Object o) IllegalArgumentException if o is a non-RoleUnresolved object. | |
| checkTypeSafe | back to summary |
|---|---|
| private static void checkTypeSafe(Collection<?> c) IllegalArgumentException if c contains any non-RoleUnresolved objects. | |
| set | back to summary |
|---|---|
| public void set(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException Overrides java. Implements java. Sets the element at the position specified to be the unresolved role specified. The previous element at that position is discarded.
| |
| set | back to summary |
|---|---|
| public Object set(int index, Object element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element.
| |