public static interface FormData.Pair
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
key()
Returns a string that represents the form content segment key.
|
static FormData.Pair |
of(java.lang.String key,
java.lang.String value)
Returns the
Pair instance for the given key and value . |
default java.lang.String |
value()
Returns a string that represents the form content segment value or an empty string if the
key does not correspond to any value.
|
static FormData.Pair of(java.lang.String key, java.lang.String value)
Pair
instance for the given key
and value
.
The key-value pair that represents a segment of a form data, for example a form field content.
key
- the form content segment keyvalue
- the form content segment value. Can be empty if the key
does not
correspond to any value
. For example, an empty form fieldjava.lang.IllegalArgumentException
- when key
is empty or blankdefault java.lang.String key()
default java.lang.String value()