APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management.relation

public Class RoleUnresolvedList

extends ArrayList<Object>
Class Inheritance
Imports
com.sun.jmx.mbeanserver.Util, java.util.ArrayList, .Collection, .List

A RoleUnresolvedList represents a list of RoleUnresolved objects, representing roles not retrieved from a relation due to a problem encountered when trying to access (read or write) the roles.

It is not permitted to add objects to a RoleUnresolvedList that are not instances of RoleUnresolved. This will produce an IllegalArgumentException when calling methods in this class, or when using listIterator and add or set.

Since
1.5

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
RoleUnresolvedList()

Constructs an empty RoleUnresolvedList.

public
RoleUnresolvedList(int
initial capacity
initialCapacity
)

Constructs an empty RoleUnresolvedList with the initial capacity specified.

public
RoleUnresolvedList(List<RoleUnresolved>
the List that defines the initial contents of the new RoleUnresolvedList.
list
)

Constructs a RoleUnresolvedList containing the elements of the List specified, in the order in which they are returned by the List's iterator.

Method Summary

Modifier and TypeMethod and Description
public void
add(RoleUnresolved
the unresolved role to be added.
role
)

Overrides java.util.ArrayList.add.

Implements java.util.List.add, java.util.Collection.add.

Adds the RoleUnresolved specified as the last element of the list.

public void
add(int
The position in the list where the new RoleUnresolved object is to be inserted.
index
,
RoleUnresolved
The RoleUnresolved object to be inserted.
role
)

Overrides java.util.ArrayList.add.

Implements java.util.List.add.

Inserts the unresolved role specified as an element at the position specified.

public boolean
add(Object o)

Overrides java.util.ArrayList.add.

Implements java.util.List.add, java.util.Collection.add.

Appends the specified element to the end of this list.

public void
add(int index, Object element)

Overrides java.util.ArrayList.add.

Implements java.util.List.add.

Inserts the specified element at the specified position in this list.

public boolean

Returns:

true if this list changed as a result of the call.
addAll
(RoleUnresolvedList
Elements to be inserted into the list (can be null).
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.

public boolean

Returns:

true if this list changed as a result of the call.
addAll
(int
Position at which to insert the first element from the RoleUnresolvedList specified.
index
,
RoleUnresolvedList
Elements to be inserted into the list.
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.

public boolean
addAll(Collection<?> c)

Overrides java.util.ArrayList.addAll.

Implements java.util.List.addAll, java.util.Collection.addAll.

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator.

public boolean
addAll(int index, Collection<?> c)

Overrides java.util.ArrayList.addAll.

Implements java.util.List.addAll.

Inserts all of the elements in the specified collection into this list, starting at the specified position.

public List<RoleUnresolved>

Returns:

a List<RoleUnresolved> whose contents reflect the contents of this RoleUnresolvedList.
asList
()

Return a view of this list as a List<RoleUnresolved>.

private static void
checkTypeSafe(Object o)

IllegalArgumentException if o is a non-RoleUnresolved object.

private static void
checkTypeSafe(Collection<?> c)

IllegalArgumentException if c contains any non-RoleUnresolved objects.

public void
set(int
The position specified.
index
,
RoleUnresolved
The value to which the unresolved role element should be set.
role
)

Overrides java.util.ArrayList.set.

Implements java.util.List.set.

Sets the element at the position specified to be the unresolved role specified.

public Object
set(int index, Object element)

Overrides java.util.ArrayList.set.

Implements java.util.List.set.

Replaces the element at the specified position in this list with the specified element.

Inherited from java.util.ArrayList:
addFirstaddLastclearclonecontainsensureCapacityequalsforEachgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorremoveremoveremoveAllremoveFirstremoveIfremoveLastremoveRangereplaceAllretainAllsizesortspliteratorsubListtoArraytoArraytrimToSize

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.ArrayList.serialVersionUID.

Constructor Detail

RoleUnresolvedListback to summary
public RoleUnresolvedList()

Constructs an empty RoleUnresolvedList.

RoleUnresolvedListback to summary
public RoleUnresolvedList(int initialCapacity)

Constructs an empty RoleUnresolvedList with the initial capacity specified.

Parameters
initialCapacity:int

initial capacity

RoleUnresolvedListback to summary
public RoleUnresolvedList(List<RoleUnresolved> list) throws IllegalArgumentException

Constructs a RoleUnresolvedList containing the elements of the List specified, in the order in which they are returned by the List's iterator. The RoleUnresolvedList instance has an initial capacity of 110% of the size of the List specified.

Parameters
list:List<RoleUnresolved>

the List that defines the initial contents of the new RoleUnresolvedList.

Exceptions
IllegalArgumentException:
if the list parameter is null or if the list parameter contains any non-RoleUnresolved objects.
See Also
ArrayList#ArrayList(java.util.Collection)

Method Detail

addback to summary
public void add(RoleUnresolved role) throws IllegalArgumentException

Overrides java.util.ArrayList.add.

Implements java.util.List.add, java.util.Collection.add.

Adds the RoleUnresolved specified as the last element of the list.

Parameters
role:RoleUnresolved

the unresolved role to be added.

Exceptions
IllegalArgumentException:
if the unresolved role is null.
addback to summary
public void add(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException

Overrides java.util.ArrayList.add.

Implements java.util.List.add.

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.

Parameters
index:int

The position in the list where the new RoleUnresolved object is to be inserted.

role:RoleUnresolved

The RoleUnresolved object to be inserted.

Exceptions
IllegalArgumentException:
if the unresolved role is null.
IndexOutOfBoundsException:
if index is out of range (index < 0 || index > size()).
addback to summary
public boolean add(Object o)

Overrides java.util.ArrayList.add.

Implements java.util.List.add, java.util.Collection.add.

Doc from java.util.ArrayList.add.

Appends the specified element to the end of this list.

Annotations
@Override
Exceptions
IllegalArgumentException:
if o is not a RoleUnresolved.
addback to summary
public void add(int index, Object element)

Overrides java.util.ArrayList.add.

Implements java.util.List.add.

Doc from java.util.ArrayList.add.

Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Annotations
@Override
Exceptions
IllegalArgumentException:
if element is not a RoleUnresolved.
addAllback to summary
public boolean addAll(RoleUnresolvedList roleList) throws IndexOutOfBoundsException

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.

Parameters
roleList:RoleUnresolvedList

Elements to be inserted into the list (can be null).

Returns:boolean

true if this list changed as a result of the call.

Exceptions
IndexOutOfBoundsException:
if accessing with an index outside of the list.
addAllback to summary
public boolean addAll(int index, RoleUnresolvedList roleList) throws IllegalArgumentException, IndexOutOfBoundsException

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.

Parameters
index:int

Position at which to insert the first element from the RoleUnresolvedList specified.

roleList:RoleUnresolvedList

Elements to be inserted into the list.

Returns:boolean

true if this list changed as a result of the call.

Exceptions
IllegalArgumentException:
if the role is null.
IndexOutOfBoundsException:
if index is out of range (index < 0 || index > size()).
addAllback to summary
public boolean addAll(Collection<?> c)

Overrides java.util.ArrayList.addAll.

Implements java.util.List.addAll, java.util.Collection.addAll.

Doc from java.util.ArrayList.addAll.

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.)

Annotations
@Override
Exceptions
IllegalArgumentException:
if c contains a member that is not a RoleUnresolved.
addAllback to summary
public boolean addAll(int index, Collection<?> c)

Overrides java.util.ArrayList.addAll.

Implements java.util.List.addAll.

Doc from java.util.ArrayList.addAll.

Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator.

Annotations
@Override
Exceptions
IllegalArgumentException:
if c contains a member that is not a RoleUnresolved.
asListback to summary
public List<RoleUnresolved> asList()

Return a view of this list as a List<RoleUnresolved>. Changes to the returned value are reflected by changes to the original RoleUnresolvedList and vice versa.

Returns:List<RoleUnresolved>

a List<RoleUnresolved> whose contents reflect the contents of this RoleUnresolvedList.

Exceptions
IllegalArgumentException:
if this RoleUnresolvedList contains an element that is not a RoleUnresolved.
Since
1.6
checkTypeSafeback to summary
private static void checkTypeSafe(Object o)

IllegalArgumentException if o is a non-RoleUnresolved object.

checkTypeSafeback to summary
private static void checkTypeSafe(Collection<?> c)

IllegalArgumentException if c contains any non-RoleUnresolved objects.

setback to summary
public void set(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException

Overrides java.util.ArrayList.set.

Implements java.util.List.set.

Sets the element at the position specified to be the unresolved role specified. The previous element at that position is discarded.

Parameters
index:int

The position specified.

role:RoleUnresolved

The value to which the unresolved role element should be set.

Exceptions
IllegalArgumentException:
if the unresolved role is null.
IndexOutOfBoundsException:
if index is out of range (index < 0 || index >= size()).
setback to summary
public Object set(int index, Object element)

Overrides java.util.ArrayList.set.

Implements java.util.List.set.

Doc from java.util.ArrayList.set.

Replaces the element at the specified position in this list with the specified element.

Annotations
@Override
Exceptions
IllegalArgumentException:
if element is not a RoleUnresolved.