类 RoleUnresolvedList

java.lang.Object
java.util.AbstractCollection <E>
java.util.AbstractList <E>
java.util.ArrayList <Object >
javax.management.relation.RoleUnresolvedList
所有已实现的接口:
Serializable , Cloneable , Iterable<Object> , Collection<Object> , List<Object> , RandomAccess

public class RoleUnresolvedList extends ArrayList <Object >
RoleUnresolvedList 表示 RoleUnresolved 对象的列表,表示由于在尝试访问(读取或写入)角色时遇到的问题而未从关系中检索到的角色。
自从:
1.5
参见:
  • 构造方法详细信息

    • RoleUnresolvedList

      public RoleUnresolvedList()
      构造一个空的 RoleUnresolvedList。
    • RoleUnresolvedList

      public RoleUnresolvedList(int initialCapacity)
      构造一个具有指定初始容量的空 RoleUnresolvedList。
      参数:
      initialCapacity - 初始容量
    • RoleUnresolvedList

      public RoleUnresolvedList(List <RoleUnresolved > list) throws IllegalArgumentException
      构造一个包含指定 List 元素的 RoleUnresolvedList,按照它们由 List 的迭代器返回的顺序。 RoleUnresolvedList 实例的初始容量为指定的 List 大小的 110%。
      参数:
      list - 定义新 RoleUnresolvedList 初始内容的 List
      抛出:
      IllegalArgumentException - 如果 list 参数是 null 或者如果 list 参数包含任何非 RoleUnresolved 对象。
      参见:
  • 方法详情

    • asList

      public List <RoleUnresolved > asList()
      将此list的视图作为 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 - - 要插入到列表中的元素(可以为空)。
      返回:
      如果此list因调用而更改,则为真。
      抛出:
      IndexOutOfBoundsException - 如果使用列表外的索引进行访问。
    • addAll

      public boolean addAll(int index, RoleUnresolvedList  roleList) throws IllegalArgumentException , IndexOutOfBoundsException
      将指定 RoleUnresolvedList 中的所有元素插入此list,从指定位置开始,按照它们由指定 RoleUnresolvedList 的迭代器返回的顺序。
      参数:
      index - - 从指定的 RoleUnresolvedList 中插入第一个元素的位置。
      roleList - - 要插入到列表中的元素。
      返回:
      如果此list因调用而更改,则为真。
      抛出:
      IllegalArgumentException - 如果角色为空。
      IndexOutOfBoundsException - 如果索引超出范围 (index < 0 || index > size())。