javax.management
Class AttributeList

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.AbstractCollection sample code for java.util.AbstractCollection definition code for java.util.AbstractCollection <E>
      extended by java.util.AbstractList sample code for java.util.AbstractList definition code for java.util.AbstractList <E>
          extended by java.util.ArrayList sample code for java.util.ArrayList definition code for java.util.ArrayList 
              extended by javax.management.AttributeList
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , Iterable sample code for java.lang.Iterable definition code for java.lang.Iterable , Collection sample code for java.util.Collection definition code for java.util.Collection , List sample code for java.util.List definition code for java.util.List , RandomAccess sample code for java.util.RandomAccess definition code for java.util.RandomAccess

public class AttributeList
extends ArrayList sample code for java.util.ArrayList definition code for java.util.ArrayList

Represents a list of values for attributes of an MBean. The methods used for the insertion of Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute objects in the AttributeList overrides the corresponding methods in the superclass ArrayList. This is needed in order to insure that the objects contained in the AttributeList are only Attribute objects. This avoids getting an exception when retrieving elements from the AttributeList.

Since:
1.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList sample code for java.util.AbstractList definition code for java.util.AbstractList
modCount sample code for java.util.AbstractList.modCount definition code for java.util.AbstractList.modCount
 
Constructor Summary
AttributeList sample code for javax.management.AttributeList.AttributeList() definition code for javax.management.AttributeList.AttributeList() ()
          Constructs an empty AttributeList.
AttributeList sample code for javax.management.AttributeList.AttributeList(javax.management.AttributeList) definition code for javax.management.AttributeList.AttributeList(javax.management.AttributeList) (AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  list)
          Constructs an AttributeList containing the elements of the AttributeList specified, in the order in which they are returned by the AttributeList's iterator.
AttributeList sample code for javax.management.AttributeList.AttributeList(int) definition code for javax.management.AttributeList.AttributeList(int) (int initialCapacity)
          Constructs an empty AttributeList with the initial capacity specified.
 
Method Summary
 void add sample code for javax.management.AttributeList.add(javax.management.Attribute) definition code for javax.management.AttributeList.add(javax.management.Attribute) (Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  object)
          Adds the Attribute specified as the last element of the list.
 void add sample code for javax.management.AttributeList.add(int, javax.management.Attribute) definition code for javax.management.AttributeList.add(int, javax.management.Attribute) (int index, Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  object)
          Inserts the attribute specified as an element at the position specified.
 boolean addAll sample code for javax.management.AttributeList.addAll(javax.management.AttributeList) definition code for javax.management.AttributeList.addAll(javax.management.AttributeList) (AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  list)
          Appends all the elements in the AttributeList specified to the end of the list, in the order in which they are returned by the Iterator of the AttributeList specified.
 boolean addAll sample code for javax.management.AttributeList.addAll(int, javax.management.AttributeList) definition code for javax.management.AttributeList.addAll(int, javax.management.AttributeList) (int index, AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  list)
          Inserts all of the elements in the AttributeList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the AttributeList specified.
 void set sample code for javax.management.AttributeList.set(int, javax.management.Attribute) definition code for javax.management.AttributeList.set(int, javax.management.Attribute) (int index, Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  object)
          Sets the element at the position specified to be the attribute specified.
 
Methods inherited from class java.util.ArrayList sample code for java.util.ArrayList definition code for java.util.ArrayList
add sample code for java.util.ArrayList.add(E) definition code for java.util.ArrayList.add(E) , add sample code for java.util.ArrayList.add(int, E) definition code for java.util.ArrayList.add(int, E) , addAll sample code for java.util.ArrayList.addAll(java.util.Collection) definition code for java.util.ArrayList.addAll(java.util.Collection) , addAll sample code for java.util.ArrayList.addAll(int, java.util.Collection) definition code for java.util.ArrayList.addAll(int, java.util.Collection) , clear sample code for java.util.ArrayList.clear() definition code for java.util.ArrayList.clear() , clone sample code for java.util.ArrayList.clone() definition code for java.util.ArrayList.clone() , contains sample code for java.util.ArrayList.contains(java.lang.Object) definition code for java.util.ArrayList.contains(java.lang.Object) , ensureCapacity sample code for java.util.ArrayList.ensureCapacity(int) definition code for java.util.ArrayList.ensureCapacity(int) , get sample code for java.util.ArrayList.get(int) definition code for java.util.ArrayList.get(int) , indexOf sample code for java.util.ArrayList.indexOf(java.lang.Object) definition code for java.util.ArrayList.indexOf(java.lang.Object) , isEmpty sample code for java.util.ArrayList.isEmpty() definition code for java.util.ArrayList.isEmpty() , lastIndexOf sample code for java.util.ArrayList.lastIndexOf(java.lang.Object) definition code for java.util.ArrayList.lastIndexOf(java.lang.Object) , remove sample code for java.util.ArrayList.remove(int) definition code for java.util.ArrayList.remove(int) , remove sample code for java.util.ArrayList.remove(java.lang.Object) definition code for java.util.ArrayList.remove(java.lang.Object) , removeRange sample code for java.util.ArrayList.removeRange(int, int) definition code for java.util.ArrayList.removeRange(int, int) , set sample code for java.util.ArrayList.set(int, E) definition code for java.util.ArrayList.set(int, E) , size sample code for java.util.ArrayList.size() definition code for java.util.ArrayList.size() , toArray sample code for java.util.ArrayList.toArray() definition code for java.util.ArrayList.toArray() , toArray sample code for java.util.ArrayList.toArray(T[]) definition code for java.util.ArrayList.toArray(T[]) , trimToSize sample code for java.util.ArrayList.trimToSize() definition code for java.util.ArrayList.trimToSize()
 
Methods inherited from class java.util.AbstractList sample code for java.util.AbstractList definition code for java.util.AbstractList
equals sample code for java.util.AbstractList.equals(java.lang.Object) definition code for java.util.AbstractList.equals(java.lang.Object) , hashCode sample code for java.util.AbstractList.hashCode() definition code for java.util.AbstractList.hashCode() , iterator sample code for java.util.AbstractList.iterator() definition code for java.util.AbstractList.iterator() , listIterator sample code for java.util.AbstractList.listIterator() definition code for java.util.AbstractList.listIterator() , listIterator sample code for java.util.AbstractList.listIterator(int) definition code for java.util.AbstractList.listIterator(int) , subList sample code for java.util.AbstractList.subList(int, int) definition code for java.util.AbstractList.subList(int, int)
 
Methods inherited from class java.util.AbstractCollection sample code for java.util.AbstractCollection definition code for java.util.AbstractCollection
containsAll sample code for java.util.AbstractCollection.containsAll(java.util.Collection) definition code for java.util.AbstractCollection.containsAll(java.util.Collection) , removeAll sample code for java.util.AbstractCollection.removeAll(java.util.Collection) definition code for java.util.AbstractCollection.removeAll(java.util.Collection) , retainAll sample code for java.util.AbstractCollection.retainAll(java.util.Collection) definition code for java.util.AbstractCollection.retainAll(java.util.Collection) , toString sample code for java.util.AbstractCollection.toString() definition code for java.util.AbstractCollection.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface java.util.List sample code for java.util.List definition code for java.util.List
containsAll sample code for java.util.List.containsAll(java.util.Collection) definition code for java.util.List.containsAll(java.util.Collection) , equals sample code for java.util.List.equals(java.lang.Object) definition code for java.util.List.equals(java.lang.Object) , hashCode sample code for java.util.List.hashCode() definition code for java.util.List.hashCode() , iterator sample code for java.util.List.iterator() definition code for java.util.List.iterator() , listIterator sample code for java.util.List.listIterator() definition code for java.util.List.listIterator() , listIterator sample code for java.util.List.listIterator(int) definition code for java.util.List.listIterator(int) , removeAll sample code for java.util.List.removeAll(java.util.Collection) definition code for java.util.List.removeAll(java.util.Collection) , retainAll sample code for java.util.List.retainAll(java.util.Collection) definition code for java.util.List.retainAll(java.util.Collection) , subList sample code for java.util.List.subList(int, int) definition code for java.util.List.subList(int, int)
 

Constructor Detail

AttributeList sample code for javax.management.AttributeList() definition code for javax.management.AttributeList()

public AttributeList()
Constructs an empty AttributeList.


AttributeList sample code for javax.management.AttributeList(int) definition code for javax.management.AttributeList(int)

public AttributeList(int initialCapacity)
Constructs an empty AttributeList with the initial capacity specified.

Parameters:
initialCapacity - the initial capacity of the AttributeList, as specified by ArrayList.ArrayList(int) sample code for java.util.ArrayList.ArrayList(int) definition code for java.util.ArrayList.ArrayList(int) .

AttributeList sample code for javax.management.AttributeList(javax.management.AttributeList) definition code for javax.management.AttributeList(javax.management.AttributeList)

public AttributeList(AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  list)
Constructs an AttributeList containing the elements of the AttributeList specified, in the order in which they are returned by the AttributeList's iterator. The AttributeList instance has an initial capacity of 110% of the size of the AttributeList specified.

Parameters:
list - the AttributeList that defines the initial contents of the new AttributeList.
See Also:
ArrayList.ArrayList(java.util.Collection) sample code for java.util.ArrayList.ArrayList(java.util.Collection) definition code for java.util.ArrayList.ArrayList(java.util.Collection)
Method Detail

add sample code for javax.management.AttributeList.add(javax.management.Attribute) definition code for javax.management.AttributeList.add(javax.management.Attribute)

public void add(Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  object)
Adds the Attribute specified as the last element of the list.

Parameters:
object - The attribute to be added.

add sample code for javax.management.AttributeList.add(int, javax.management.Attribute) definition code for javax.management.AttributeList.add(int, javax.management.Attribute)

public void add(int index,
                Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  object)
Inserts the attribute specified as an element at the position specified. Elements with an index greater than or equal to the current position are shifted up. If the index is out of range (index < 0 || index > size() a RuntimeOperationsException should be raised, wrapping the java.lang.IndexOutOfBoundsException thrown.

Parameters:
object - The Attribute object to be inserted.
index - The position in the list where the new Attribute object is to be inserted.

set sample code for javax.management.AttributeList.set(int, javax.management.Attribute) definition code for javax.management.AttributeList.set(int, javax.management.Attribute)

public void set(int index,
                Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  object)
Sets the element at the position specified to be the attribute specified. The previous element at that position is discarded. If the index is out of range (index < 0 || index > size() a RuntimeOperationsException should be raised, wrapping the java.lang.IndexOutOfBoundsException thrown.

Parameters:
object - The value to which the attribute element should be set.
index - The position specified.

addAll sample code for javax.management.AttributeList.addAll(javax.management.AttributeList) definition code for javax.management.AttributeList.addAll(javax.management.AttributeList)

public boolean addAll(AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  list)
Appends all the elements in the AttributeList specified to the end of the list, in the order in which they are returned by the Iterator of the AttributeList specified.

Parameters:
list - Elements to be inserted into the list.
Returns:
true if this list changed as a result of the call.
See Also:
ArrayList.addAll(java.util.Collection) sample code for java.util.ArrayList.addAll(java.util.Collection) definition code for java.util.ArrayList.addAll(java.util.Collection)

addAll sample code for javax.management.AttributeList.addAll(int, javax.management.AttributeList) definition code for javax.management.AttributeList.addAll(int, javax.management.AttributeList)

public boolean addAll(int index,
                      AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  list)
Inserts all of the elements in the AttributeList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the AttributeList specified. If the index is out of range (index < 0 || index > size() a RuntimeOperationsException should be raised, wrapping the java.lang.IndexOutOfBoundsException thrown.

Parameters:
list - Elements to be inserted into the list.
index - Position at which to insert the first element from the AttributeList specified.
Returns:
true if this list changed as a result of the call.
See Also:
ArrayList.addAll(int, java.util.Collection) sample code for java.util.ArrayList.addAll(int, java.util.Collection) definition code for java.util.ArrayList.addAll(int, java.util.Collection)