|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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(List list)
Construct a RoleList from a list. |
Method Summary | |
void |
add(int index,
Role role)
Adds a role at the specified location in the list. |
void |
add(Role role)
Appends a role to the end of the list. |
boolean |
addAll(int index,
RoleList roleList)
Inserts a role list at the specified location in the list. |
boolean |
addAll(RoleList roleList)
Appends a role list to the end of the list. |
Object |
clone()
Cloning, creates a new RoleList with the same elements. |
void |
set(int index,
Role 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(List list) throws IllegalArgumentException
list
- the list to copy from.
IllegalArgumentException
- for a null list or
an list element that is not a role.Method Detail |
public void add(Role role) throws IllegalArgumentException
role
- the new role.
IllegalArgumentException
- if the role is nullpublic void add(int index, Role role) throws IllegalArgumentException, IndexOutOfBoundsException
index
- the location at which to insert the role.role
- the new role.
IllegalArgumentException
- if the role is null
IndexOutOfBoundsException
- if there is no such index
in the listpublic boolean addAll(RoleList roleList) throws IndexOutOfBoundsException
roleList
- the role list to insert, can be null
IndexOutOfBoundsException
- if there is no such index
in the list (this is part of ArrayList for some reason?)public boolean addAll(int index, RoleList roleList) throws IllegalArgumentException, IndexOutOfBoundsException
index
- the location at which to insert the role list.roleList
- the role list to insert.
IllegalArgumentException
- if the role list is null
IndexOutOfBoundsException
- if there is no such index
in the listpublic void set(int index, Role role) throws IllegalArgumentException, IndexOutOfBoundsException
index
- the location of the role to replace.role
- the new role.
IllegalArgumentException
- if the role is null
IndexOutOfBoundsException
- if there is no such index
in the listpublic Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |