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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends String> c) boolean
addAll
(Collection<? extends String> c) void
void
void
clear()
boolean
element()
get
(int idx) getFirst()
getLast()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) boolean
boolean
offerFirst
(String headerValue) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
remove
(int idx) boolean
boolean
boolean
int
size()
subList
(int fromIndex, int toIndex) String[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
isEmpty
in interfaceCollection<String>
- Specified by:
isEmpty
in interfaceList<String>
- Overrides:
isEmpty
in classAbstractCollection<String>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<String>
- Specified by:
clear
in interfaceList<String>
- Overrides:
clear
in classAbstractCollection<String>
-
listIterator
- Specified by:
listIterator
in interfaceList<String>
-
listIterator
- Specified by:
listIterator
in interfaceList<String>
-
iterator
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<String>
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<String>
-
offerLast
-
pollFirst
-
pollLast
-
remove
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<String>
-
set
-
addAll
-
subList
-
toArray
- Specified by:
toArray
in interfaceCollection<String>
- Specified by:
toArray
in interfaceList<String>
- Overrides:
toArray
in classAbstractCollection<String>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<String>
- Specified by:
toArray
in interfaceList<String>
- Overrides:
toArray
in classAbstractCollection<String>
-
addFirst
-
addLast
-
add
-
contains
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<String>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<String>
-
add
-
push
-
pop
-
offer
-
poll
-
peek
-
remove
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<String>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<String>
-
getFirst
-
getLast
-
element
-
remove
-
addAll
-