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:
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
public ListIterator<String> listIterator()
- Specified by:
listIterator
in interfaceList<String>
-
listIterator
public ListIterator<String> listIterator(int index)
- Specified by:
listIterator
in interfaceList<String>
-
descendingIterator
public Iterator<String> descendingIterator()
- Specified by:
descendingIterator
in interfaceDeque<String>
-
offerFirst
public boolean offerFirst(String headerValue)
- Specified by:
offerFirst
in interfaceDeque<String>
-
offerLast
public boolean offerLast(String headerValue)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<String>
-
addAll
public boolean addAll(int index, Collection<? extends String> c)
-
toArray
public String[] 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>
-
contains
public boolean contains(Object o)
-
removeFirstOccurrence
public boolean removeFirstOccurrence(Object o)
- Specified by:
removeFirstOccurrence
in interfaceDeque<String>
-
removeLastOccurrence
public boolean removeLastOccurrence(Object o)
- Specified by:
removeLastOccurrence
in 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:
removeFirst
in interfaceDeque<String>
-
removeLast
public String removeLast()
- Specified by:
removeLast
in interfaceDeque<String>
-
element
public String element()
-
remove
public boolean remove(Object obj)
-
addAll
public boolean addAll(Collection<? extends String> c)
-
-