| Modifier and Type | Field and Description |
|---|---|
| pack-priv final HttpString | |
| private static final String[] | |
| pack-priv byte | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(final int
index at which the specified element is to be inserted index, final String element to be inserted s)Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| public boolean | add(final String
the element to add s)Overrides java. Implements java. Inserts the specified element into the queue represented by this deque
(in other words, at the tail of this deque) if it is possible to do so
immediately without violating capacity restrictions, returning
|
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, final Collection<? extends String> collection containing elements to be added to this list c)Implements java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
| public boolean | addAll(final Collection<? extends String>
the elements to be inserted into this deque c)Overrides java. Implements java. Adds all of the elements in the specified collection at the end
of this deque, as if by calling |
| public void | addFirst(final String
the element to add s)Overrides default java. Implements java. Inserts the specified element at the front of this deque if it is
possible to do so immediately without violating capacity restrictions,
throwing an |
| public void | addLast(final String
the element to add s)Overrides default java. Implements java. Inserts the specified element at the end of this deque if it is
possible to do so immediately without violating capacity restrictions,
throwing an |
| public void | clear()
Overrides java. Implements java. Removes all of the elements from this list (optional operation). |
| private void | |
| public boolean | contains(final Object
element whose presence in this deque is to be tested o)Overrides java. Implements java. Returns |
| public Iterator | descendingIterator()
Implements java. Returns an iterator over the elements in this deque in reverse sequential order. |
| public String | element()
Implements java. Retrieves, but does not remove, the head of the queue represented by this deque (in other words, the first element of this deque). |
| public String | get(int
index of the element to return idx)Implements java. Returns the element at the specified position in this list. |
| public String | getFirst()
Overrides default java. Implements java. Retrieves, but does not remove, the first element of this deque. |
| public HttpString | |
| public String | getLast()
Overrides default java. Implements java. Retrieves, but does not remove, the last element of this deque. |
| private int | |
| public int | indexOf(final Object
element to search for o)Implements java. Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public boolean | isEmpty()
Overrides java. Implements java. Returns |
| public Iterator | iterator()
Implements abstract java. Implements java. Returns an iterator over the elements in this deque in proper sequence. |
| private ListIterator | |
| public int | lastIndexOf(final Object
element to search for o)Implements java. Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public ListIterator | listIterator()
Implements java. Returns a list iterator over the elements in this list (in proper sequence). |
| public ListIterator | listIterator(final int
index of the first element to be returned from the
list iterator (by a call to index)next)Implements java. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| private boolean | |
| public boolean | offer(final String
the element to add s)Implements java. Inserts the specified element into the queue represented by this deque
(in other words, at the tail of this deque) if it is possible to do so
immediately without violating capacity restrictions, returning
|
| public boolean | offerFirst(final String
the element to add headerValue)Implements java. Inserts the specified element at the front of this deque unless it would violate capacity restrictions. |
| public boolean | offerLast(final String
the element to add headerValue)Implements java. Inserts the specified element at the end of this deque unless it would violate capacity restrictions. |
| private void | |
| public String | peek()
Implements java. Retrieves, but does not remove, the head of the queue represented by
this deque (in other words, the first element of this deque), or
returns |
| public String | peekFirst()
Implements java. Retrieves, but does not remove, the first element of this deque,
or returns |
| public String | peekLast()
Implements java. Retrieves, but does not remove, the last element of this deque,
or returns |
| public String | poll()
Implements java. Retrieves and removes the head of the queue represented by this deque
(in other words, the first element of this deque), or returns
|
| public String | pollFirst()
Implements java. Retrieves and removes the first element of this deque,
or returns |
| public String | pollLast()
Implements java. Retrieves and removes the last element of this deque,
or returns |
| public String | |
| public void | push(final String
the element to push s)Implements java. Pushes an element onto the stack represented by this deque (in other
words, at the head of this deque) if it is possible to do so
immediately without violating capacity restrictions, throwing an
|
| public String | remove(int
the index of the element to be removed idx)Implements java. Removes the element at the specified position in this list (optional operation). |
| public String | remove()
Implements java. Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque). |
| public boolean | remove(Object
element to be removed from this deque, if present obj)Overrides java. Implements java. Removes the first occurrence of the specified element from this deque. |
| public String | removeFirst()
Overrides default java. Implements java. Retrieves and removes the first element of this deque. |
| public boolean | removeFirstOccurrence(final Object
element to be removed from this deque, if present o)Implements java. Removes the first occurrence of the specified element from this deque. |
| public String | removeLast()
Overrides default java. Implements java. Retrieves and removes the last element of this deque. |
| public boolean | removeLastOccurrence(final Object
element to be removed from this deque, if present o)Implements java. Removes the last occurrence of the specified element from this deque. |
| public String | set(final int
index of the element to replace index, final String element to be stored at the specified position element)Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this deque. |
| public List | subList(final int
low endpoint (inclusive) of the subList fromIndex, final int high endpoint (exclusive) of the subList toIndex)Implements java. Returns a view of the portion of this list between the specified
|
| public String[] | toArray()
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public <T> T[] | toArray(final T[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. a)Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
| key | back to summary |
|---|---|
| pack-priv final HttpString key | |
| NO_STRINGS | back to summary |
|---|---|
| private static final String[] NO_STRINGS | |
| size | back to summary |
|---|---|
| pack-priv byte size | |
| value | back to summary |
|---|---|
| pack-priv Object value | |
| HeaderValues | back to summary |
|---|---|
| pack-priv HeaderValues(final HttpString key) | |
| add | back to summary |
|---|---|
| public void add(final int index, final String s) Implements java. Doc from java. Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| add | back to summary |
|---|---|
| public boolean add(final String s) Overrides java. Implements java. Doc from java. Inserts the specified element into the queue represented by this deque
(in other words, at the tail of this deque) if it is possible to do so
immediately without violating capacity restrictions, returning
This method is equivalent to
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, final Collection<? extends String> c) Implements java. Doc from java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(final Collection<? extends String> c) Overrides java. Implements java. Doc from java. Adds all of the elements in the specified collection at the end
of this deque, as if by calling When using a capacity-restricted deque, it is generally preferable
to call An exception encountered while trying to add an element may result in only some of the elements having been successfully added when the associated exception is thrown.
| |
| addFirst | back to summary |
|---|---|
| public void addFirst(final String s) Overrides default java. Implements java. Doc from java. Inserts the specified element at the front of this deque if it is
possible to do so immediately without violating capacity restrictions,
throwing an
| |
| addLast | back to summary |
|---|---|
| public void addLast(final String s) Overrides default java. Implements java. Doc from java. Inserts the specified element at the end of this deque if it is
possible to do so immediately without violating capacity restrictions,
throwing an This method is equivalent to
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this list (optional operation). The list will be empty after this call returns. | |
| clearInternal | back to summary |
|---|---|
| private void clearInternal() | |
| contains | back to summary |
|---|---|
| public boolean contains(final Object o) Overrides java. Implements java. Doc from java. Returns
| |
| descendingIterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over the elements in this deque in reverse sequential order. The elements will be returned in order from last (tail) to first (head). | |
| element | back to summary |
|---|---|
| public String element() Implements java. Doc from java. Retrieves, but does not remove, the head of the queue represented by
this deque (in other words, the first element of this deque).
This method differs from This method is equivalent to
| |
| get | back to summary |
|---|---|
| public String get(int idx) Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| getFirst | back to summary |
|---|---|
| public String getFirst() Overrides default java. Implements java. Doc from java. Retrieves, but does not remove, the first element of this deque.
This method differs from
| |
| getHeaderName | back to summary |
|---|---|
| public HttpString getHeaderName() | |
| getLast | back to summary |
|---|---|
| public String getLast() Overrides default java. Implements java. Doc from java. Retrieves, but does not remove, the last element of this deque.
This method differs from
| |
| index | back to summary |
|---|---|
| private int index(int idx) | |
| indexOf | back to summary |
|---|---|
| public int indexOf(final Object o) Implements java. Doc from java. Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
More formally, returns the lowest index
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this deque in proper sequence. The elements will be returned in order from first (head) to last (tail). | |
| iterator | back to summary |
|---|---|
| private ListIterator | |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(final Object o) Implements java. Doc from java. Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
More formally, returns the highest index
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper sequence).
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to
| |
| offer | back to summary |
|---|---|
| private boolean offer(int idx, final String headerValue) | |
| offer | back to summary |
|---|---|
| public boolean offer(final String s) Implements java. Doc from java. Inserts the specified element into the queue represented by this deque
(in other words, at the tail of this deque) if it is possible to do so
immediately without violating capacity restrictions, returning
This method is equivalent to
| |
| offerFirst | back to summary |
|---|---|
| public boolean offerFirst(final String headerValue) Implements java. Doc from java. Inserts the specified element at the front of this deque unless it would
violate capacity restrictions. When using a capacity-restricted deque,
this method is generally preferable to the
| |
| offerLast | back to summary |
|---|---|
| public boolean offerLast(final String headerValue) Implements java. Doc from java. Inserts the specified element at the end of this deque unless it would
violate capacity restrictions. When using a capacity-restricted deque,
this method is generally preferable to the
| |
| offerLastMultiValue | back to summary |
|---|---|
| private void offerLastMultiValue(String headerValue, int size, String[] value) | |
| peek | back to summary |
|---|---|
| public String peek() Implements java. Doc from java. Retrieves, but does not remove, the head of the queue represented by
this deque (in other words, the first element of this deque), or
returns This method is equivalent to
| |
| peekFirst | back to summary |
|---|---|
| public String peekFirst() Implements java. Doc from java. Retrieves, but does not remove, the first element of this deque,
or returns
| |
| peekLast | back to summary |
|---|---|
| public String peekLast() Implements java. Doc from java. Retrieves, but does not remove, the last element of this deque,
or returns
| |
| poll | back to summary |
|---|---|
| public String poll() Implements java. Doc from java. Retrieves and removes the head of the queue represented by this deque
(in other words, the first element of this deque), or returns
This method is equivalent to
| |
| pollFirst | back to summary |
|---|---|
| public String pollFirst() Implements java. Doc from java. Retrieves and removes the first element of this deque,
or returns
| |
| pollLast | back to summary |
|---|---|
| public String pollLast() Implements java. Doc from java. Retrieves and removes the last element of this deque,
or returns
| |
| pop | back to summary |
|---|---|
| public String pop() Implements java. Doc from java. Pops an element from the stack represented by this deque. In other words, removes and returns the first element of this deque. This method is equivalent to
| |
| push | back to summary |
|---|---|
| public void push(final String s) Implements java. Doc from java. Pushes an element onto the stack represented by this deque (in other
words, at the head of this deque) if it is possible to do so
immediately without violating capacity restrictions, throwing an
This method is equivalent to
| |
| remove | back to summary |
|---|---|
| public String remove(int idx) Implements java. Doc from java. Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
| |
| remove | back to summary |
|---|---|
| public String remove() Implements java. Doc from java. Retrieves and removes the head of the queue represented by this deque
(in other words, the first element of this deque).
This method differs from This method is equivalent to
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object obj) Overrides java. Implements java. Doc from java. Removes the first occurrence of the specified element from this deque.
If the deque does not contain the element, it is unchanged.
More formally, removes the first element This method is equivalent to
| |
| removeFirst | back to summary |
|---|---|
| public String removeFirst() Overrides default java. Implements java. Doc from java. Retrieves and removes the first element of this deque. This method
differs from
| |
| removeFirstOccurrence | back to summary |
|---|---|
| public boolean removeFirstOccurrence(final Object o) Implements java. Doc from java. Removes the first occurrence of the specified element from this deque.
If the deque does not contain the element, it is unchanged.
More formally, removes the first element
| |
| removeLast | back to summary |
|---|---|
| public String removeLast() Overrides default java. Implements java. Doc from java. Retrieves and removes the last element of this deque. This method
differs from
| |
| removeLastOccurrence | back to summary |
|---|---|
| public boolean removeLastOccurrence(final Object o) Implements java. Doc from java. Removes the last occurrence of the specified element from this deque.
If the deque does not contain the element, it is unchanged.
More formally, removes the last element
| |
| set | back to summary |
|---|---|
| public String set(final int index, final String element) Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation). | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this deque.
| |
| subList | back to summary |
|---|---|
| public List Implements java. Doc from java. Returns a view of the portion of this list between the specified
This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:
Similar idioms may be constructed for indexOf and
lastIndexOf, and all of the algorithms in the
Collections class can be applied to a subList.The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.) | |
| toArray | back to summary |
|---|---|
| public String[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(final T[] a) Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list. If the list fits in the specified array with room to spare (i.e.,
the array has more elements than the list), the element in the array
immediately following the end of the list is set to Like the Suppose
Note that toArray(new Object[0]) is identical in function to
toArray().
| |