public class RoleUnresolvedList extends ArrayList<Object>
modCount| Constructor and Description |
|---|
RoleUnresolvedList()
构造一个空roleunresolvedlist。
|
RoleUnresolvedList(int initialCapacity)
构建了一个具有指定的初始容量的空roleunresolvedlist。
|
RoleUnresolvedList(List<RoleUnresolved> list)
构建了一个
RoleUnresolvedList含有的
List指定的元素,在它们的
List的迭代器返回的顺序。
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index, Object element)
在列表中指定的位置上插入指定的元素。
|
void |
add(int index, RoleUnresolved role)
在指定的位置上插入未解决的角色指定的元素。
|
boolean |
add(Object o)
将指定的元素列表的结束。
|
void |
add(RoleUnresolved role)
加roleunresolved指定列表的最后一个元素。
|
boolean |
addAll(Collection<?> c)
追加指定集合的所有元素到这个列表的末尾,按他们的指定集合的迭代器返回。
|
boolean |
addAll(int index, Collection<?> c)
将指定集合中的所有元素插入到该列表中,从指定位置开始。
|
boolean |
addAll(int index, RoleUnresolvedList roleList)
将所有指定到这个列表的roleunresolvedlist元素,从指定位置开始,在它们的迭代器指定的roleunresolvedlist返回顺序。
|
boolean |
addAll(RoleUnresolvedList roleList)
在指定附加到列表的末尾的roleunresolvedlist所有元素,在它们的迭代器指定的roleunresolvedlist返回顺序。
|
List<RoleUnresolved> |
asList()
返回此列表的视图作为一个
List<RoleUnresolved>。
|
Object |
set(int index, Object element)
用指定元素替换此列表中指定位置的元素。
|
void |
set(int index, RoleUnresolved role)
将指定的位置设置为指定的未解决的角色。
|
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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic RoleUnresolvedList()
public RoleUnresolvedList(int initialCapacity)
initialCapacity初始容量
public RoleUnresolvedList(List<RoleUnresolved> list) throws IllegalArgumentException
RoleUnresolvedList含有的
List指定的元素,在它们的
List的迭代器返回的顺序。的
RoleUnresolvedList实例有110%的
List大小指定的初始容量。
list -定义新的
RoleUnresolvedList初始内容的
List。
IllegalArgumentException -如果
list参数
null或者
list参数包含任何非roleunresolved对象。
ArrayList.ArrayList(java.util.Collection)
public List<RoleUnresolved> asList()
List<RoleUnresolved>,返回值的变化反映了改变原来的
RoleUnresolvedList反之亦然。
List<RoleUnresolved>其内容反映这
RoleUnresolvedList内容。
如果这种方法被称为在一个给定的RoleUnresolvedList实例,随后尝试添加一个对象实例这是一个不RoleUnresolved将失败与IllegalArgumentException。由于兼容性的原因,一RoleUnresolvedList,这种方法从来没有所谓的不允许其他RoleUnresolveds要添加对象。
IllegalArgumentException -如果这
RoleUnresolvedList包含一个元素,不是一个
RoleUnresolved。
public void add(RoleUnresolved role) throws IllegalArgumentException
role -要添加的解决作用。
IllegalArgumentException如果未解决的作用是空的。
public void add(int index,
RoleUnresolved role)
throws IllegalArgumentException,
IndexOutOfBoundsException
index -在列表中的新roleunresolved对象被插入的位置。
role -的roleunresolved要插入的对象。
IllegalArgumentException如果未解决的作用是空的。
IndexOutOfBoundsException如果索引超出范围(
index < 0 || index > size())。
public void set(int index,
RoleUnresolved role)
throws IllegalArgumentException,
IndexOutOfBoundsException
index -指定位置。
role -价值的解决作用元件应设置。
IllegalArgumentException如果未解决的作用是空的。
IndexOutOfBoundsException如果索引超出范围(
index < 0 || index >= size())。
public boolean addAll(RoleUnresolvedList roleList) throws IndexOutOfBoundsException
roleList -元素被插入到列表中(可以为空)。
IndexOutOfBoundsException如果访问列表的外部指标。
public boolean addAll(int index,
RoleUnresolvedList roleList)
throws IllegalArgumentException,
IndexOutOfBoundsException
index -位置,从roleunresolvedlist指定插入的第一个元素。
roleList -元素被插入到列表中。
IllegalArgumentException -如果角色是空的。
IndexOutOfBoundsException如果索引超出范围(
index < 0 || index > size())。
public boolean add(Object o)
ArrayList
add 接口
Collection<Object>
add 接口
List<Object>
add 方法重写,继承类
ArrayList<Object>
o元素附加到列表
Collection.add(E)指定)
public void add(int index,
Object element)
ArrayList
public boolean addAll(Collection<?> c)
ArrayList
addAll 接口
Collection<Object>
addAll 接口
List<Object>
addAll 方法重写,继承类
ArrayList<Object>
c收集含有的元素被添加到列表
AbstractCollection.add(Object)
public boolean addAll(int index,
Collection<?> c)
ArrayList
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.