Home » openjdk-7 » javax » management » relation » [javadoc | source]
javax.management.relation
public class: RoleList [javadoc | source]
java.lang.Object
   java.util.AbstractCollection<E>
      java.util.AbstractList<E>
         java.util.ArrayList<Object>
            javax.management.relation.RoleList

All Implemented Interfaces:
    Cloneable, List, Serializable, RandomAccess, Collection

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.
Fields inherited from java.util.AbstractList:
modCount
Constructor:
 public RoleList() 
 public RoleList(int initialCapacity) 
 public RoleList(List<Role> list) throws IllegalArgumentException 
    Constructs a {@code RoleList} containing the elements of the {@code List} specified, in the order in which they are returned by the {@code List}'s iterator. The {@code RoleList} instance has an initial capacity of 110% of the size of the {@code List} specified.
    Parameters:
    list - the {@code List} that defines the initial contents of the new {@code RoleList}.
    Throws:
    IllegalArgumentException - if the {@code list} parameter is {@code null} or if the {@code list} parameter contains any non-Role objects.
    Also see:
    ArrayList#ArrayList(java.util.Collection)
    exception: IllegalArgumentException - if the {@code list} parameter is {@code null} or if the {@code list} parameter contains any non-Role objects.
Method from javax.management.relation.RoleList Summary:
add,   add,   add,   add,   addAll,   addAll,   addAll,   addAll,   asList,   set,   set
Methods from java.util.ArrayList:
add,   add,   addAll,   addAll,   clear,   clone,   contains,   elementData,   ensureCapacity,   get,   indexOf,   isEmpty,   iterator,   lastIndexOf,   listIterator,   listIterator,   remove,   remove,   removeAll,   removeRange,   retainAll,   set,   size,   subList,   subListRangeCheck,   toArray,   toArray,   trimToSize
Methods from java.util.AbstractList:
add,   add,   addAll,   clear,   equals,   get,   hashCode,   indexOf,   iterator,   lastIndexOf,   listIterator,   listIterator,   remove,   removeRange,   set,   subList
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.management.relation.RoleList Detail:
 public  void add(Role role) throws IllegalArgumentException 
    Adds the Role specified as the last element of the list.
 public boolean add(Object o) 
 public  void add(int index,
    Role role) throws IllegalArgumentException, IndexOutOfBoundsException 
    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.
 public  void add(int index,
    Object element) 
 public boolean addAll(RoleList roleList) throws IndexOutOfBoundsException 
    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(Collection<?> c) 
 public boolean addAll(int index,
    RoleList roleList) throws IllegalArgumentException, IndexOutOfBoundsException 
    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(int index,
    Collection<?> c) 
 public List<Role> asList() 
    Return a view of this list as a {@code List}. Changes to the returned value are reflected by changes to the original {@code RoleList} and vice versa.
 public  void set(int index,
    Role role) throws IllegalArgumentException, IndexOutOfBoundsException 
    Sets the element at the position specified to be the role specified. The previous element at that position is discarded.
 public Object set(int index,
    Object element)