| 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.
|
Constructor Summary | |
public | RoleList() Constructs an empty RoleList. | public | RoleList(int theInitialCapacity) Constructs an empty RoleList with the initial capacity specified. | public | RoleList(List theList) 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(int theIndex, Role theRole) Inserts the role specified as an element at the position specified. | public void | add(Role theRole) Adds the Role specified as the last element of the list. | public boolean | addAll(int theIndex, RoleList theRoleList) 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(RoleList theRoleList) 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 java.lang.Object | clone() Cloning. | public void | set(int theIndex, Role theRole) Sets the element at the position specified to be the role specified. |
RoleList | public RoleList()(Code) | | Constructs an empty RoleList.
|
RoleList | public RoleList(int theInitialCapacity)(Code) | | Constructs an empty RoleList with the initial capacity specified.
Parameters: theInitialCapacity - - initial capacity |
RoleList | public RoleList(List theList) 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: theList - - list of Role objects exception: java.lang.IllegalArgumentException - - if:- null parameter or- an element in the ArrayList is not a Role |
addAll | public boolean addAll(RoleList theRoleList) 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: theRoleList - - Elements to be inserted into the list (can be null) throws: java.lang.IndexOutOfBoundsException - - if accessing with anindex outside of the list. |
clone | public java.lang.Object clone()(Code) | | Cloning. This will create a duplicate copy of the RoleList.
Returns a new RoleList, but no copy of the included elements.Overrides:clone in class java.util.ArrayList |
|
|