public class RedirectLocations extends AbstractList<Object>
URI的集合。
modCount| Constructor and Description |
|---|
RedirectLocations() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index, Object element)
在指定的位置插入指定的元素(必须是URI)。
|
void |
add(URI uri)
向集合添加一个新的URI。
|
boolean |
contains(Object o)
如果此集合包含指定的元素,则返回
true 。
|
boolean |
contains(URI uri)
测试集合中是否存在URI。
|
URI |
get(int index)
返回此列表中指定位置的URI。
|
List<URI> |
getAll()
|
URI |
remove(int index)
删除此列表中指定位置的URI。
|
boolean |
remove(URI uri)
从集合中删除一个URI。
|
Object |
set(int index, Object element)
用指定的元素替换此列表中指定位置的URI(必须是URI)。
|
int |
size()
返回此列表中的元素数。
|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic boolean contains(URI uri)
public void add(URI uri)
public boolean remove(URI uri)
public URI get(int index)
get在界面
List<Object>
get在
AbstractList<Object>
index - 要返回的位置的索引
IndexOutOfBoundsException - 如果索引超出范围(
index < 0 || index >= size() )
public int size()
Integer.MAX_VALUE元素,则返回Integer.MAX_VALUE 。
size在界面
Collection<Object>
size在界面
List<Object>
size在
AbstractCollection<Object>
public Object set(int index, Object element)
set在界面
List<Object>
set在
AbstractList<Object>
index - 要替换的元素的索引
element - 要存储在指定位置的URI
UnsupportedOperationException - 如果此列表不支持
set操作
ClassCastException - 如果元素不是URI
NullPointerException - 如果指定的元素为空,并且此列表不允许空元素
IndexOutOfBoundsException - 如果索引超出范围(
index < 0 || index >= size() )
public void add(int index,
Object element)
add在界面
List<Object>
add在
AbstractList<Object>
index - 要在其中插入指定元素的索引
element - 要插入的URI
UnsupportedOperationException - 如果此列表不支持
add操作
ClassCastException - 如果元素不是URI
NullPointerException - 如果指定的元素为空,并且该列表不允许空元素
IndexOutOfBoundsException - 如果索引超出范围(
index < 0 || index > size() )
public URI remove(int index)
remove在界面
List<Object>
remove在类
AbstractList<Object>
index - 要删除的URI的索引
IndexOutOfBoundsException - 如果索引超出范围(
index < 0 || index >= size() )
public boolean contains(Object o)
true 。
更正式地说,返回true当且仅当这个集合包含至少一个元素e这样(o==null ? e==null : o.equals(e)) 。
contains在界面
Collection<Object>
contains在界面
List<Object>
contains在
AbstractCollection<Object>
o - 要在此集合中存在的元素将被测试
true如果此集合包含指定的元素
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.