| java.util.ArrayList javax.management.relation.RoleList
RoleList | public class RoleList extends ArrayList (Code) | | A RoleList represents a list of roles (Role objects). It is used as
parameter when creating a relation, and when trying to set several roles in
a relation (via 'setRoles()' method). It is returned as part of a
RoleResult, to provide roles successfully retrieved.
author: Young Yang |
Constructor Summary | |
public | RoleList() | public | RoleList(int initialCapacity) Constructs an empty RoleList with the initial capacity
specified. | public | RoleList(List roleList) Constructs a RoleList containing the elements of the
ArrayList specified, in the order in which they are returned
by the ArrayList's iterator. |
Method Summary | |
public void | add(Role theRole) Adds the Role specified as the last element of the list. | public void | add(int theIndex, Role theRole) Inserts the role specified as an element at the position specified. | public boolean | addAll(RoleList _roleList) 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. | public boolean | addAll(int theIndex, RoleList _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 Object | clone() Cloning
Returns a new RoleList, but no copy of the included elements. | public void | set(int theIndex, Role theRole) Sets the element at the position specified to be the role
specified. |
RoleList | public RoleList()(Code) | | |
RoleList | public RoleList(int initialCapacity)(Code) | | Constructs an empty RoleList with the initial capacity
specified.
Parameters: initialCapacity - initial capacity |
RoleList | public RoleList(List roleList) throws IllegalArgumentException(Code) | | Constructs a RoleList containing the elements of the
ArrayList specified, in the order in which they are returned
by the ArrayList's iterator. The RoleList instance has
an initial capacity of 110% of the size of the ArrayList
specified.
Parameters: roleList - list of Role objects exception: IllegalArgumentException - if:- null parameter or - an element in the ArrayList is not a Role |
add | public void add(int theIndex, Role theRole) throws IllegalArgumentException, IndexOutOfBoundsException(Code) | | 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.
Parameters: theIndex - The position in the list where the new Roleobject is to be inserted. Parameters: theRole - The Role object to be inserted. exception: IllegalArgumentException - if the role is null. exception: IndexOutOfBoundsException - if accessing with an indexoutside of the list. |
addAll | public boolean addAll(RoleList _roleList) throws IndexOutOfBoundsException(Code) | | 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.
Parameters: _roleList - Elements to be inserted into the list (can be null) exception: IndexOutOfBoundsException - if accessing with an indexoutside of the list. |
addAll | public boolean addAll(int theIndex, RoleList _roleList) throws IllegalArgumentException, IndexOutOfBoundsException(Code) | | 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.
Parameters: theIndex - Position at which to insert the first element from theRoleList specified. Parameters: _roleList - Elements to be inserted into the list. exception: IllegalArgumentException - if the role is null. exception: IndexOutOfBoundsException - if accessing with an indexoutside of the list. |
clone | public Object clone()(Code) | | Cloning
Returns a new RoleList, but no copy of the included elements.
|
|
|