Methods Summary |
---|
public boolean | add(java.lang.Object o)
if (!tainted)
tainted = isTainted(o);
if (typeSafe)
checkTypeSafe(o);
return super.add(o);
|
public void | add(int index, java.lang.Object element)
if (!tainted)
tainted = isTainted(element);
if (typeSafe)
checkTypeSafe(element);
super.add(index, element);
|
public void | add(javax.management.Attribute object)Adds the {@code Attribute} specified as the last element of the list.
super.add(object);
|
public void | add(int index, 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.
try {
super.add(index, object);
}
catch (IndexOutOfBoundsException e) {
throw new RuntimeOperationsException(e,
"The specified index is out of range");
}
|
public boolean | addAll(int index, 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 {@code AttributeList} specified.
If the index is out of range (index < 0 || index > size() a
RuntimeOperationsException should be raised, wrapping the
java.lang.IndexOutOfBoundsException thrown.
try {
return super.addAll(index, list);
}
catch (IndexOutOfBoundsException e) {
throw new RuntimeOperationsException(e,
"The specified index is out of range");
}
|
public boolean | addAll(java.util.Collection c)
if (!tainted)
tainted = isTainted(c);
if (typeSafe)
checkTypeSafe(c);
return super.addAll(c);
|
public boolean | addAll(int index, java.util.Collection c)
if (!tainted)
tainted = isTainted(c);
if (typeSafe)
checkTypeSafe(c);
return super.addAll(index, c);
|
public boolean | addAll(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.
return (super.addAll(list));
|
public java.util.List | asList()Return a view of this list as a {@code List}.
Changes to the returned value are reflected by changes
to the original {@code AttributeList} and vice versa.
if (!typeSafe) {
if (tainted)
checkTypeSafe(this);
typeSafe = true;
}
return (List<Attribute>) (List) this;
|
private static void | checkTypeSafe(java.lang.Object o)IllegalArgumentException if o is a non-Attribute object.
try {
o = (Attribute) o;
} catch (ClassCastException e) {
throw new IllegalArgumentException(e);
}
|
private static void | checkTypeSafe(java.util.Collection c)IllegalArgumentException if c contains any non-Attribute objects.
try {
Attribute a;
for (Object o : c)
a = (Attribute) o;
} catch (ClassCastException e) {
throw new IllegalArgumentException(e);
}
|
private static boolean | isTainted(java.lang.Object o)Returns true if o is a non-Attribute object.
try {
checkTypeSafe(o);
} catch (IllegalArgumentException e) {
return true;
}
return false;
|
private static boolean | isTainted(java.util.Collection c)Returns true if c contains any non-Attribute objects.
try {
checkTypeSafe(c);
} catch (IllegalArgumentException e) {
return true;
}
return false;
|
public java.lang.Object | set(int index, java.lang.Object element)
if (!tainted)
tainted = isTainted(element);
if (typeSafe)
checkTypeSafe(element);
return super.set(index, element);
|
public void | set(int index, 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.
try {
super.set(index, object);
}
catch (IndexOutOfBoundsException e) {
throw new RuntimeOperationsException(e,
"The specified index is out of range");
}
|