| java.util.ArrayList javax.management.relation.RoleList
RoleList | public class RoleList extends ArrayList (Code) | | A list of roles.
I think the idea is supposed to be that only roles should be in the
list. But this isn't true.
Revisions:
20020313 Adrian Brock:
author: Adrian Brock version: $Revision: 57200 $ |
Constructor Summary | |
public | RoleList() Construct an empty RoleList. | public | RoleList(int initialCapacity) Construct a RoleList with an initial capacity. | public | RoleList(List list) Construct a RoleList from a list. |
Method Summary | |
public void | add(Role role) Appends a role to the end of the list. | public void | add(int index, Role role) Adds a role at the specified location in the list. | public boolean | addAll(RoleList roleList) Appends a role list to the end of the list. | public boolean | addAll(int index, RoleList roleList) Inserts a role list at the specified location in the list.
Parameters: index - the location at which to insert the role list. Parameters: roleList - the role list to insert. | public Object | clone() Cloning, creates a new RoleList with the same elements. | public void | set(int index, Role role) Sets a role at the specified location in the list. |
RoleList | public RoleList()(Code) | | Construct an empty RoleList.
|
RoleList | public RoleList(int initialCapacity)(Code) | | Construct a RoleList with an initial capacity.
Parameters: initialCapacity - the initial capacity. |
RoleList | public RoleList(List list) throws IllegalArgumentException(Code) | | Construct a RoleList from a list. It must be an ArrayList.
The order of the list is maintained.
Parameters: list - the list to copy from. exception: IllegalArgumentException - for a null list oran list element that is not a role. |
addAll | public boolean addAll(RoleList roleList) throws IndexOutOfBoundsException(Code) | | Appends a role list to the end of the list.
Parameters: roleList - the role list to insert, can be null true if the list changes, false otherwise exception: IndexOutOfBoundsException - if there is no such indexin the list (this is part of ArrayList for some reason?) |
clone | public Object clone()(Code) | | Cloning, creates a new RoleList with the same elements.
The roles in the list are not cloned.
the new empty role list. |
|
|