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