站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

RoleUnresolvedList (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management.relation
Class RoleUnresolvedList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byjavax.management.relation.RoleUnresolvedList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class RoleUnresolvedList
extends ArrayList

A list of unresolved roles.

Revisions:

20020313 Adrian Brock:

Version:
$Revision: 1.6 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RoleUnresolvedList()
          Construct an empty RoleUnresolvedList.
RoleUnresolvedList(int initialCapacity)
          Construct a RoleUnresolvedList with an initial capacity.
RoleUnresolvedList(List list)
          Construct a RoleUnresolvedList from a list.
 
Method Summary
 void add(int index, RoleUnresolved roleUnresolved)
          Adds an unresolved role at the specified location in the list.
 void add(RoleUnresolved roleUnresolved)
          Appends a unresolved role to the end of the list.
 boolean addAll(int index, RoleUnresolvedList roleUnresolvedList)
          Inserts an unresolved role list at the specified location in the list.
 boolean addAll(RoleUnresolvedList roleUnresolvedList)
          Appends an unresolved role list to the end of the list.
 Object clone()
          Cloning.
 void set(int index, RoleUnresolved roleUnresolved)
          Sets an unresolved 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

RoleUnresolvedList

public RoleUnresolvedList()
Construct an empty RoleUnresolvedList.


RoleUnresolvedList

public RoleUnresolvedList(int initialCapacity)
Construct a RoleUnresolvedList with an initial capacity.

Parameters:
initialCapacity - the initial capacity.

RoleUnresolvedList

public RoleUnresolvedList(List list)
                   throws IllegalArgumentException
Construct a RoleUnresolvedList from a list. It must be an ArrayList. The order of the list is maintained.

Parameters:
list - the list to copy from.
Throws:
IllegalArgumentException - for a null list or an list element that is not a role unresolved.
Method Detail

add

public void add(RoleUnresolved roleUnresolved)
         throws IllegalArgumentException
Appends a unresolved role to the end of the list.

Parameters:
roleUnresolved - the new unresolved role.
Throws:
IllegalArgumentException - if the unresolved role is null

add

public void add(int index,
                RoleUnresolved roleUnresolved)
         throws IllegalArgumentException,
                IndexOutOfBoundsException
Adds an unresolved role at the specified location in the list.

Parameters:
index - the location at which to insert the unresolved role.
roleUnresolved - the new unresolved role.
Throws:
IllegalArgumentException - if the unresolved role is null
IndexOutOfBoundsException - if there is no such index in the list

addAll

public boolean addAll(RoleUnresolvedList roleUnresolvedList)
               throws IndexOutOfBoundsException
Appends an unresolved role list to the end of the list.

Parameters:
roleUnresolvedList - the unresolved role list to append (can be null).
Returns:
true if the list changes, false otherwise
Throws:
IndexOutOfBoundsException - if there is no such index in the list

addAll

public boolean addAll(int index,
                      RoleUnresolvedList roleUnresolvedList)
               throws IllegalArgumentException,
                      IndexOutOfBoundsException
Inserts an unresolved role list at the specified location in the list.

Parameters:
index - the location at which to insert the unresolved role list.
roleUnresolvedList - the unresolved role list to insert.
Returns:
true if the list changes, false otherwise
Throws:
IllegalArgumentException - if the unresolved role list is null
IndexOutOfBoundsException - if there is no such index in the list

set

public void set(int index,
                RoleUnresolved roleUnresolved)
         throws IllegalArgumentException,
                IndexOutOfBoundsException
Sets an unresolved role at the specified location in the list.

Parameters:
index - the location of the unresolved role to replace.
roleUnresolved - the new unresolved role.
Throws:
IllegalArgumentException - if the unresolved role is null
IndexOutOfBoundsException - if there is no such index in the list

clone

public Object clone()
Cloning. REVIEW: The spec says to return a RoleList, that's not very much of a clone is it? It must be a typo in the RI.

Returns:
the new unresolved role list with the same unresolved roles.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.