Package io.undertow.util
Class HeaderValues
- All Implemented Interfaces:
Iterable<String>,Collection<String>,Deque<String>,List<String>,Queue<String>,RandomAccess
public final class HeaderValues
extends AbstractCollection<String>
implements Deque<String>, List<String>, RandomAccess
An array-backed list/deque for header string values.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends String> c) booleanaddAll(Collection<? extends String> c) voidvoidvoidclear()booleanelement()get(int idx) getFirst()getLast()intbooleanisEmpty()iterator()intlistIterator(int index) booleanbooleanofferFirst(String headerValue) booleanpeek()peekLast()poll()pollLast()pop()voidremove()remove(int idx) booleanbooleanbooleanintsize()subList(int fromIndex, int toIndex) String[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, equals, hashCode, removeAll, replaceAll, retainAll, sort, spliterator
-
Method Details
-
getHeaderName
-
size
public int size() -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<String>- Specified by:
isEmptyin interfaceList<String>- Overrides:
isEmptyin classAbstractCollection<String>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<String>- Specified by:
clearin interfaceList<String>- Overrides:
clearin classAbstractCollection<String>
-
listIterator
- Specified by:
listIteratorin interfaceList<String>
-
listIterator
- Specified by:
listIteratorin interfaceList<String>
-
iterator
-
descendingIterator
- Specified by:
descendingIteratorin interfaceDeque<String>
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<String>
-
offerLast
-
pollFirst
-
pollLast
-
remove
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<String>
-
set
-
addAll
-
subList
-
toArray
- Specified by:
toArrayin interfaceCollection<String>- Specified by:
toArrayin interfaceList<String>- Overrides:
toArrayin classAbstractCollection<String>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<String>- Specified by:
toArrayin interfaceList<String>- Overrides:
toArrayin classAbstractCollection<String>
-
addFirst
-
addLast
-
add
-
contains
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<String>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<String>
-
add
-
push
-
pop
-
offer
-
poll
-
peek
-
remove
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<String>
-
removeLast
- Specified by:
removeLastin interfaceDeque<String>
-
getFirst
-
getLast
-
element
-
remove
-
addAll
-