public final class ArrayHeaderList extends AbstractComplexHeaderList
HeaderList that contains Headers provided in an array.| Constructor and Description |
|---|
ArrayHeaderList(Header<?>... headers)
Creates a new
HeaderList that contains the provided Headers. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Header<?> header)
Returns whether this HeaderSet contains the given
Header. |
boolean |
contains(HeaderType<?> headerType)
Returns whether this HeaderSet contains a
Header of the given HeaderType. |
java.util.Iterator<Header<?>> |
iterator() |
int |
size()
Returns the number of
Headers in this HeaderList. |
append, append, headersByType, removepublic ArrayHeaderList(Header<?>... headers)
HeaderList that contains the provided Headers. The array must not contain null values.headers - The headers in this HeaderList.public java.util.Iterator<Header<?>> iterator()
public boolean contains(HeaderType<?> headerType)
HeaderListHeader of the given HeaderType.public boolean contains(Header<?> header)
HeaderListHeader. This is only true if the set contains a Header having the same HeaderType and
value.public int size()
HeaderListHeaders in this HeaderList.