Class StructuredFieldParameters
java.lang.Object
org.apache.hc.core5.http.structured.StructuredFieldParameters
- All Implemented Interfaces:
Iterable<Map.Entry<String,StructuredFieldBareItem>>
@Contract(threading=IMMUTABLE)
public final class StructuredFieldParameters
extends Object
implements Iterable<Map.Entry<String,StructuredFieldBareItem>>
Immutable, ordered Structured Field Parameters map.
- Since:
- 5.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds immutable, insertion-ordered Parameters maps. -
Field Summary
Fields -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
Empty parameter map.
-
-
Method Details
-
builder
- Returns:
- a new ordered Parameters builder.
-
size
public int size()- Returns:
- the number of parameters.
-
isEmpty
public boolean isEmpty()- Returns:
- whether there are no parameters.
-
get
Looks up a parameter by key.- Parameters:
key- the parameter key.- Returns:
- the bare Item value, or
nullwhen absent.
-
getName
- Parameters:
index- the zero-based ordered index.- Returns:
- the parameter key at the index.
-
getValue
- Parameters:
index- the zero-based ordered index.- Returns:
- the parameter value at the index.
-
asMap
- Returns:
- an unmodifiable, insertion-ordered map view.
-
iterator
- Specified by:
iteratorin interfaceIterable<Map.Entry<String,StructuredFieldBareItem>>
-
equals
-
hashCode
public int hashCode() -
toString
-