java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
javax.management.AttributeList
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable
- public class AttributeList
- extends java.util.ArrayList
A list of a MBean attributes.
An AttributeList can be used to get and set multiple MBean attributes
in one invocation.
It is an array list that can only contain
Attributes
Note: AttributeLists must be externally synchronized.
- Version:
- $Revision: 1.2 $
| Fields inherited from class java.util.ArrayList |
|
|
Method Summary |
void |
add(Attribute object)
Append an Attribute to the list. |
void |
add(int index,
Attribute object)
Insert a new Attribute into the list at the specified location. |
boolean |
addAll(AttributeList list)
Append the attributes the passed list to the end of this list. |
boolean |
addAll(int index,
AttributeList list)
Insert all the attributes in the passed list at the specified
location in this list. |
void |
set(int index,
Attribute object)
Change the attribute at the specified location. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
AttributeList
public AttributeList()
- Contruct a new empty attribute list.
AttributeList
public AttributeList(int initialCapacity)
- Contruct a new empty attriute list with an initial capacity.
AttributeList
public AttributeList(AttributeList list)
- Contruct a new attribute from another attribute list.
The order is determined by the ArrayList's iterator.
add
public void add(Attribute object)
- Append an Attribute to the list.
add
public void add(int index,
Attribute object)
- Insert a new Attribute into the list at the specified location.
set
public void set(int index,
Attribute object)
- Change the attribute at the specified location.
addAll
public boolean addAll(AttributeList list)
- Append the attributes the passed list to the end of this list.
addAll
public boolean addAll(int index,
AttributeList list)
- Insert all the attributes in the passed list at the specified
location in this list.