|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
javax.management.relation.RoleList
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:
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
RoleList()
Construct an empty RoleList. |
|
RoleList(int initialCapacity)
Construct a RoleList with an initial capacity. |
|
RoleList(java.util.List list)
Construct a RoleList from a list. |
|
| Method Summary | |
void |
add(int index,
Role (src) role)
Adds a role at the specified location in the list. |
void |
add(Role (src) role)
Appends a role to the end of the list. |
boolean |
addAll(int index,
RoleList (src) roleList)
Inserts a role list at the specified location in the list. |
boolean |
addAll(RoleList (src) roleList)
Appends a role list to the end of the list. |
java.lang.Object |
clone()
Cloning, creates a new RoleList with the same elements. |
void |
set(int index,
Role (src) role)
Sets a role at the specified location in the list. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Constructor Detail |
public RoleList()
public RoleList(int initialCapacity)
initialCapacity - the initial capacity.
public RoleList(java.util.List list)
throws java.lang.IllegalArgumentException
list - the list to copy from.
java.lang.IllegalArgumentException - for a null list or
an list element that is not a role.| Method Detail |
public void add(Role (src) role)
throws java.lang.IllegalArgumentException
role - the new role.
java.lang.IllegalArgumentException - if the role is null
public void add(int index,
Role (src) role)
throws java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
index - the location at which to insert the role.role - the new role.
java.lang.IllegalArgumentException - if the role is null
java.lang.IndexOutOfBoundsException - if there is no such index
in the list
public boolean addAll(RoleList (src) roleList)
throws java.lang.IndexOutOfBoundsException
roleList - the role list to insert, can be null
java.lang.IndexOutOfBoundsException - if there is no such index
in the list (this is part of ArrayList for some reason?)
public boolean addAll(int index,
RoleList (src) roleList)
throws java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
index - the location at which to insert the role list.roleList - the role list to insert.
java.lang.IllegalArgumentException - if the role list is null
java.lang.IndexOutOfBoundsException - if there is no such index
in the list
public void set(int index,
Role (src) role)
throws java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
index - the location of the role to replace.role - the new role.
java.lang.IllegalArgumentException - if the role is null
java.lang.IndexOutOfBoundsException - if there is no such index
in the listpublic java.lang.Object clone()
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||