- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Object>
-
- javax.management.relation.RoleUnresolvedList
-
- All Implemented Interfaces:
-
Serializable,Cloneable,Iterable<Object>,Collection<Object>,List<Object>,RandomAccess
public class RoleUnresolvedList extends ArrayList<Object>
RoleUnresolvedList表示RoleUnresolved对象的列表,表示由于在尝试访问(读取或写入)角色时遇到问题,不会从关系中检索到角色。- 从以下版本开始:
- 1.5
- 另请参见:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
构造方法摘要
构造方法 Constructor 描述 RoleUnresolvedList()构造一个空的RoleUnresolvedList。RoleUnresolvedList(int initialCapacity)构造一个空的RoleUnresolvedList,并指定初始容量。RoleUnresolvedList(List<RoleUnresolved> list)构造一个RoleUnresolvedList其中包含RoleUnresolvedList的元素,按List的迭代器返回的List。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 voidadd(int index, Object element)在此列表中的指定位置插入指定的元素。voidadd(int index, RoleUnresolved role)在指定的位置插入指定为元素的未解决角色。booleanadd(Object o)将指定的元素追加到此列表的末尾。voidadd(RoleUnresolved role)将指定的RoleUnresolved作为列表的最后一个元素添加。booleanaddAll(int index, Collection<?> c)将指定集合中的所有元素插入到此列表中,从指定的位置开始。booleanaddAll(int index, RoleUnresolvedList roleList)将指定的RoleUnresolvedList中的所有元素从指定的位置开始,按照指定的RoleUnresolvedList的迭代器返回的顺序。booleanaddAll(Collection<?> c)按指定集合的Iterator返回的顺序将指定集合中的所有元素追加到此列表的末尾。booleanaddAll(RoleUnresolvedList roleList)按照指定的RoleUnresolvedList的迭代器返回的顺序,将指定的RoleUnresolvedList中的所有元素附加到列表的末尾。List<RoleUnresolved>asList()将此列表的视图作为List<RoleUnresolved>。Objectset(int index, Object element)用指定的元素替换此列表中指定位置的元素。voidset(int index, RoleUnresolved role)将元素指定为指定的未解决角色。-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.util.AbstractList
equals, hashCode
-
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from interface java.util.Collection
parallelStream, stream
-
-
-
-
构造方法详细信息
-
RoleUnresolvedList
public RoleUnresolvedList()
构造一个空的RoleUnresolvedList。
-
RoleUnresolvedList
public RoleUnresolvedList(int initialCapacity)
构造一个空的RoleUnresolvedList,并指定初始容量。- 参数
-
initialCapacity- 初始容量
-
RoleUnresolvedList
public RoleUnresolvedList(List<RoleUnresolved> list) throws IllegalArgumentException
构造一个RoleUnresolvedList其中包含RoleUnresolvedList的元素,按List的迭代器返回的List。RoleUnresolvedList实例的初始容量为指定的List大小的110%。- 参数
-
list-所述List定义新的初始内容RoleUnresolvedList。 - 异常
-
IllegalArgumentException- 如果list参数为null或list参数包含任何非RoleUnresolved对象。 - 另请参见:
-
ArrayList(java.util.Collection)
-
-
方法详细信息
-
asList
public List<RoleUnresolved> asList()
将此列表的视图作为List<RoleUnresolved>。 返回值的更改反映在原来的RoleUnresolvedList的更改中,反之亦然。- 结果
-
一个
List<RoleUnresolved>的内容反映了这个RoleUnresolvedList的内容。如果在给定的
RoleUnresolvedList实例中调用了此方法,则后续尝试将对象添加到不是RoleUnresolved实例将失败,并显示IllegalArgumentException。 出于兼容性考虑,一个RoleUnresolvedList上这种方法从来没有被称为确实允许比其他对象RoleUnresolved进行增补。 - 异常
-
IllegalArgumentException- 如果这个RoleUnresolvedList包含一个不是RoleUnresolved的元素。 - 从以下版本开始:
- 1.6
-
add
public void add(RoleUnresolved role) throws IllegalArgumentException
将指定的RoleUnresolved作为列表的最后一个元素添加。- 参数
-
role- - 未解决的角色将被添加。 - 异常
-
IllegalArgumentException- 如果未解决的角色为空。
-
add
public void add(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException在指定的位置插入指定为元素的未解决角色。 索引大于或等于当前位置的元素向上移动。- 参数
-
index- - 要插入新的RoleUnresolved对象的列表中的位置。 -
role- - 要插入的RoleUnresolved对象。 - 异常
-
IllegalArgumentException- 如果未解决的角色为空。 -
IndexOutOfBoundsException- 如果索引超出范围(index < 0 || index > size())。
-
set
public void set(int index, RoleUnresolved role) throws IllegalArgumentException, IndexOutOfBoundsException将元素指定为指定的未解决角色。 该位置的上一个元素被丢弃。- 参数
-
index- - 指定的位置。 -
role- - 应该设置未解析的角色元素的值。 - 异常
-
IllegalArgumentException- 如果未解决的角色为空。 -
IndexOutOfBoundsException- 如果索引超出范围(index < 0 || index >= size())。
-
addAll
public boolean addAll(RoleUnresolvedList roleList) throws IndexOutOfBoundsException
按照指定的RoleUnresolvedList的迭代器返回的顺序,将指定的RoleUnresolvedList中的所有元素附加到列表的末尾。- 参数
-
roleList- 要插入到列表中的元素(可以为null)。 - 结果
- 如果此列表因呼叫而更改,则为true。
- 异常
-
IndexOutOfBoundsException- 如果使用列表外的索引进行访问。
-
addAll
public boolean addAll(int index, RoleUnresolvedList roleList) throws IllegalArgumentException, IndexOutOfBoundsException将指定的RoleUnresolvedList中的所有元素从指定的位置开始,按照指定的RoleUnresolvedList的迭代器返回的顺序。- 参数
-
index- - 从指定的RoleUnresolvedList插入第一个元素的位置。 -
roleList- - 要插入列表的元素。 - 结果
- 如果此列表因呼叫而更改,则为true。
- 异常
-
IllegalArgumentException- 如果角色为空。 -
IndexOutOfBoundsException- 如果索引超出范围(index < 0 || index > size())。
-
add
public boolean add(Object o)
描述从类别复制ArrayList将指定的元素追加到此列表的末尾。- Specified by:
-
add在接口Collection<Object> - Specified by:
-
add在接口List<Object> - 重写:
-
add在ArrayList<Object> - 参数
-
o- 要附加到此列表的元素 - 结果
-
true(由Collection.add(E)指定)
-
add
public void add(int index, Object element)描述从类别复制ArrayList在此列表中的指定位置插入指定的元素。 将当前位于该位置的元素(如果有)和任何后续元素(向其索引添加一个)移动。
-
addAll
public boolean addAll(Collection<?> c)
描述从类别复制ArrayList按指定集合的Iterator返回的顺序将指定集合中的所有元素追加到此列表的末尾。 如果在操作进行中修改了指定的集合,则此操作的行为是未定义的。 (这意味着如果指定的集合是此列表,则此调用的行为是未定义的,并且此列表是非空的。)- Specified by:
-
addAll在接口Collection<Object> - Specified by:
-
addAll在接口List<Object> - 重写:
-
addAll在ArrayList<Object> - 参数
-
c- 包含要添加到此列表中的元素的集合 - 结果
-
true如果此列表因呼叫而更改 - 另请参见:
-
AbstractCollection.add(Object)
-
addAll
public boolean addAll(int index, Collection<?> c)描述从类复制:ArrayList将指定集合中的所有元素插入到此列表中,从指定的位置开始。 将当前位于该位置(如果有的话)的元素和随后的任何元素移动到右边(增加其索引)。 新元素将按照指定集合的迭代器返回的顺序显示在列表中。
-
-