Modifier and Type | Field and Description |
---|---|
private static final long | |
private transient boolean | |
private transient boolean |
Access | Constructor and Description |
---|---|
public | |
public | RoleList(int
initial capacity initialCapacity)Constructs an empty RoleList with the initial capacity specified. |
public |
Modifier and Type | Method and Description |
---|---|
public void | add(Role
the role to be added. role)Overrides java. Implements java. Adds the Role specified as the last element of the list. |
public void | add(int
The position in the list where the new Role
object is to be inserted. index, Role The Role object to be inserted. role)Overrides java. Implements java. Inserts the role specified as an element at the position specified. |
public boolean | add(Object
element to be appended to this list o)Overrides java. Implements java. Appends the specified element to the end of this list. |
public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Overrides java. Implements java. Inserts the specified element at the specified position in this list. |
public boolean | |
public boolean | Returns: true if this list changed as a result of the call.Position at which to insert the first element from the
RoleList specified. index, RoleList Elements to be inserted into the list. roleList)Inserts all of the elements in the RoleList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the RoleList specified. |
public boolean | addAll(Collection<?>
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(int
index at which to insert the first element from the
specified collection index, Collection<?> 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 List | Returns: aList<Role> whose contents
reflect the contents of this RoleList .
If this method has ever been called on a given
Return a view of this list as a |
private static void | |
private static void | |
private static boolean | |
private static boolean | |
public void | set(int
The position specified. index, Role The value to which the role element should be set. role)Overrides java. Implements java. Sets the element at the position specified to be the role specified. |
public Object | set(int
index of the element to replace index, Object 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. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
tainted | back to summary |
---|---|
private transient boolean tainted |
typeSafe | back to summary |
---|---|
private transient boolean typeSafe |
RoleList | back to summary |
---|---|
public RoleList() Constructs an empty RoleList. |
RoleList | back to summary |
---|---|
public RoleList(int initialCapacity) Constructs an empty RoleList with the initial capacity specified.
|
RoleList | back to summary |
---|---|
public RoleList(List<Role> list) throws IllegalArgumentException Constructs a
|
add | back to summary |
---|---|
public void add(Role role) throws IllegalArgumentException Overrides java. Implements java. Adds the Role specified as the last element of the list.
|
add | back to summary |
---|---|
public void add(int index, Role role) throws IllegalArgumentException, IndexOutOfBoundsException Overrides java. Implements java. Inserts the 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(RoleList roleList) throws IndexOutOfBoundsException Appends all the elements in the RoleList specified to the end of the list, in the order in which they are returned by the Iterator of the RoleList specified.
|
addAll | back to summary |
---|---|
public boolean addAll(int index, RoleList roleList) throws IllegalArgumentException, IndexOutOfBoundsException Inserts all of the elements in the RoleList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the RoleList 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-Role object. |
checkTypeSafe | back to summary |
---|---|
private static void checkTypeSafe(Collection<?> c) IllegalArgumentException if c contains any non-Role objects. |
isTainted | back to summary |
---|---|
private static boolean isTainted(Object o) Returns true if o is a non-Role object. |
isTainted | back to summary |
---|---|
private static boolean isTainted(Collection<?> c) Returns true if c contains any non-Role objects. |
set | back to summary |
---|---|
public void set(int index, Role role) throws IllegalArgumentException, IndexOutOfBoundsException Overrides java. Implements java. Sets the element at the position specified to be the 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. |