Serializable
, Cloneable
, Iterable<Object>
, Collection<Object>
, List<Object>
, RandomAccess
, SequencedCollection<Object>
public class RoleUnresolvedList extends ArrayList<Object>
modCount
Constructor | Description |
---|---|
RoleUnresolvedList() |
Constructs an empty RoleUnresolvedList. |
RoleUnresolvedList |
Constructs an empty RoleUnresolvedList with the initial capacity specified. |
RoleUnresolvedList |
Constructs a RoleUnresolvedList containing the elements of the List specified, in the order in which they are returned by the List 's iterator. |
Modifier and Type | Method | Description |
---|---|---|
void |
add |
Inserts the unresolved role specified as an element at the position specified. |
void |
add |
Adds the RoleUnresolved specified as the last element of the list. |
boolean |
addAll |
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. |
boolean |
addAll |
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. |
List |
asList() |
Return a view of this list as a List<RoleUnresolved> . |
void |
set |
Sets the element at the position specified to be the unresolved role specified. |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, retainAll, set, size, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
parallelStream, stream, toArray
containsAll, replaceAll, reversed, sort
public RoleUnresolvedList()
public RoleUnresolvedList(int initialCapacity)
initialCapacity
- initial capacitypublic RoleUnresolvedList(List<RoleUnresolved> list) throws IllegalArgumentException
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.list
- the List
that defines the initial contents of the new RoleUnresolvedList
.IllegalArgumentException
- if the list
parameter is null
or if the list
parameter contains any non-RoleUnresolved objects.public List<RoleUnresolved> asList()
List<RoleUnresolved>
. Changes to the returned value are reflected by changes to the original RoleUnresolvedList
and vice versa.List<RoleUnresolved>
whose contents reflect the contents of this RoleUnresolvedList
. If this method has ever been called on a given RoleUnresolvedList
instance, a subsequent attempt to add an object to that instance which is not a RoleUnresolved
will fail with an IllegalArgumentException
. For compatibility reasons, a RoleUnresolvedList
on which this method has never been called does allow objects other than RoleUnresolved
s to be added.
IllegalArgumentException
- if this RoleUnresolvedList
contains an element that is not a RoleUnresolved
.public void add(RoleUnresolved role) throws IllegalArgumentException
role
- the unresolved role to be added.IllegalArgumentException
- if the unresolved role is null.public void add(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException
index
- The position in the list where the new RoleUnresolved object is to be inserted.role
- The RoleUnresolved object to be inserted.IllegalArgumentException
- if the unresolved role is null.IndexOutOfBoundsException
- if index is out of range (index < 0 || index > size()
).public void set(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException
index
- The position specified.role
- The value to which the unresolved role element should be set.IllegalArgumentException
- if the unresolved role is null.IndexOutOfBoundsException
- if index is out of range (index < 0 || index >= size()
).public boolean addAll(RoleUnresolvedList roleList) throws IndexOutOfBoundsException
roleList
- Elements to be inserted into the list (can be null).IndexOutOfBoundsException
- if accessing with an index outside of the list.public boolean addAll(int index, RoleUnresolvedList roleList) throws IllegalArgumentException, IndexOutOfBoundsException
index
- Position at which to insert the first element from the RoleUnresolvedList specified.roleList
- Elements to be inserted into the list.IllegalArgumentException
- if the role is null.IndexOutOfBoundsException
- if index is out of range (index < 0 || index > size()
).
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.management/javax/management/relation/RoleUnresolvedList.html