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.relation.RoleUnresolved role)Adds the RoleUnresolved specified as the last element of the list.
if (role == null) {
String excMsg = "Invalid parameter";
throw new IllegalArgumentException(excMsg);
}
super.add(role);
|
public void | add(int index, javax.management.relation.RoleUnresolved role)Inserts the unresolved role specified as an element at the position
specified.
Elements with an index greater than or equal to the current position are
shifted up.
if (role == null) {
String excMsg = "Invalid parameter";
throw new IllegalArgumentException(excMsg);
}
super.add(index, role);
|
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.relation.RoleUnresolvedList roleList)Appends all the elements in the RoleUnresolvedList specified to the end
of the list, in the order in which they are returned by the Iterator of
the RoleUnresolvedList specified.
if (roleList == null) {
return true;
}
return (super.addAll(roleList));
|
public boolean | addAll(int index, javax.management.relation.RoleUnresolvedList roleList)Inserts all of the elements in the RoleUnresolvedList specified into
this list, starting at the specified position, in the order in which
they are returned by the Iterator of the RoleUnresolvedList specified.
if (roleList == null) {
String excMsg = "Invalid parameter";
throw new IllegalArgumentException(excMsg);
}
return (super.addAll(index, roleList));
|
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 RoleUnresolvedList} and vice versa.
if (!typeSafe) {
if (tainted)
checkTypeSafe(this);
typeSafe = true;
}
return (List<RoleUnresolved>) (List) this;
|
private static void | checkTypeSafe(java.lang.Object o)IllegalArgumentException if o is a non-RoleUnresolved object.
try {
o = (RoleUnresolved) o;
} catch (ClassCastException e) {
throw new IllegalArgumentException(e);
}
|
private static void | checkTypeSafe(java.util.Collection c)IllegalArgumentException if c contains any non-RoleUnresolved objects.
try {
RoleUnresolved r;
for (Object o : c)
r = (RoleUnresolved) o;
} catch (ClassCastException e) {
throw new IllegalArgumentException(e);
}
|
private static boolean | isTainted(java.lang.Object o)Returns true if o is a non-RoleUnresolved 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-RoleUnresolved 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.relation.RoleUnresolved role)Sets the element at the position specified to be the unresolved role
specified.
The previous element at that position is discarded.
if (role == null) {
String excMsg = "Invalid parameter";
throw new IllegalArgumentException(excMsg);
}
super.set(index, role);
|