@NotThreadSafe public class RedirectLocations extends java.util.AbstractList<java.lang.Object>
URIs used
as redirect locations.| 构造器和说明 |
|---|
RedirectLocations() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this list
(must be a URI).
|
void |
add(java.net.URI uri)
Adds a new URI to the collection.
|
boolean |
contains(java.lang.Object o)
Returns true if this collection contains the specified element.
|
boolean |
contains(java.net.URI uri)
Test if the URI is present in the collection.
|
java.net.URI |
get(int index)
Returns the URI at the specified position in this list.
|
java.util.List<java.net.URI> |
getAll()
Returns all redirect
URIs in the order they were added to the collection. |
java.net.URI |
remove(int index)
Removes the URI at the specified position in this list.
|
boolean |
remove(java.net.URI uri)
Removes a URI from the collection.
|
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the URI at the specified position in this list with the
specified element (must be a URI).
|
int |
size()
Returns the number of elements in this list.
|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListpublic boolean contains(java.net.URI uri)
public void add(java.net.URI uri)
public boolean remove(java.net.URI uri)
public java.util.List<java.net.URI> getAll()
URIs in the order they were added to the collection.public java.net.URI get(int index)
get 在接口中 java.util.List<java.lang.Object>get 在类中 java.util.AbstractList<java.lang.Object>index - index of the location to returnjava.lang.IndexOutOfBoundsException - if the index is out of range (
index < 0 || index >= size())public int size()
size 在接口中 java.util.Collection<java.lang.Object>size 在接口中 java.util.List<java.lang.Object>size 在类中 java.util.AbstractCollection<java.lang.Object>public java.lang.Object set(int index,
java.lang.Object element)
set 在接口中 java.util.List<java.lang.Object>set 在类中 java.util.AbstractList<java.lang.Object>index - index of the element to replaceelement - URI to be stored at the specified positionjava.lang.UnsupportedOperationException - if the set operation is not supported by this listjava.lang.ClassCastException - if the element is not a URIjava.lang.NullPointerException - if the specified element is null and this list does not
permit null elementsjava.lang.IndexOutOfBoundsException - if the index is out of range (
index < 0 || index >= size())public void add(int index,
java.lang.Object element)
add 在接口中 java.util.List<java.lang.Object>add 在类中 java.util.AbstractList<java.lang.Object>index - index at which the specified element is to be insertedelement - URI to be insertedjava.lang.UnsupportedOperationException - if the add operation is not supported by this listjava.lang.ClassCastException - if the element is not a URIjava.lang.NullPointerException - if the specified element is null and this list does not
permit null elementsjava.lang.IndexOutOfBoundsException - if the index is out of range (
index < 0 || index > size())public java.net.URI remove(int index)
remove 在接口中 java.util.List<java.lang.Object>remove 在类中 java.util.AbstractList<java.lang.Object>index - the index of the URI to be removedjava.lang.IndexOutOfBoundsException - if the index is out of range (
index < 0 || index >= size())public boolean contains(java.lang.Object o)
contains 在接口中 java.util.Collection<java.lang.Object>contains 在接口中 java.util.List<java.lang.Object>contains 在类中 java.util.AbstractCollection<java.lang.Object>o - element whose presence in this collection is to be tested