Package io.undertow.util
Class HeaderValues
- java.lang.Object
-
- java.util.AbstractCollection<String>
-
- io.undertow.util.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
-
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 Detail
-
getHeaderName
public HttpString 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
public ListIterator<String> listIterator()
- Specified by:
listIteratorin interfaceList<String>
-
listIterator
public ListIterator<String> listIterator(int index)
- Specified by:
listIteratorin interfaceList<String>
-
descendingIterator
public Iterator<String> descendingIterator()
- Specified by:
descendingIteratorin interfaceDeque<String>
-
offerFirst
public boolean offerFirst(String headerValue)
- Specified by:
offerFirstin interfaceDeque<String>
-
offerLast
public boolean offerLast(String headerValue)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<String>
-
addAll
public boolean addAll(int index, Collection<? extends String> c)
-
toArray
public String[] 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>
-
contains
public boolean contains(Object o)
-
removeFirstOccurrence
public boolean removeFirstOccurrence(Object o)
- Specified by:
removeFirstOccurrencein interfaceDeque<String>
-
removeLastOccurrence
public boolean removeLastOccurrence(Object o)
- Specified by:
removeLastOccurrencein interfaceDeque<String>
-
add
public boolean add(String s)
-
offer
public boolean offer(String s)
-
poll
public String poll()
-
peek
public String peek()
-
remove
public String remove()
-
removeFirst
public String removeFirst()
- Specified by:
removeFirstin interfaceDeque<String>
-
removeLast
public String removeLast()
- Specified by:
removeLastin interfaceDeque<String>
-
element
public String element()
-
remove
public boolean remove(Object obj)
-
addAll
public boolean addAll(Collection<? extends String> c)
-
reversed
public HeaderValues reversed()
-
-