Add multiple key/value pairs
Add multiple key/value pairs
A new QueryParams instance with the added key/value pair
Add multiple key/value pairs
Add multiple key/value pairs
A new QueryParams instance with the added key/value pair
Add a key/value pair
Add a key/value pair
A new QueryParams instance with the added key/value pair
The unique set of keys with or without values
Returns all values for the given key or throws a NoSuchElementException if the key doesn't exists.
Returns all values for the given key or throws a NoSuchElementException if the key doesn't exists. An Empty Seq is returned if the key exists but has no non-null values.
Check for key/value pair existence
Check for key/value pair existence
Check for key existence
Returns the first non-null value for the given key or throws a NoSuchElementException if none exists.
Returns the first non-blank value for the given key or throws a NoSuchElementException if none exists.
Returns all values for the given key.
Returns all values for the given key. An Empty Seq is returns if the key doesn't exist or there are no non-null values.
Optionally Returns the first non-null value for the given key
Optionally Returns the first non-blank value for the given key
Returns all non-blank values for the given key.
Returns all non-blank values for the given key. An Empty Seq is returns if the key doesn't exist or there are no non-null values.
Returns true if there is a matching key (which doesn't need to have a value)
Returns true if there is a matching key (which also has a non-blank value)
Returns true if there is a matching key which has the given value
Returns true if there is a matching key which has the given value
Note: This is an alias for contains() but seems like a more natural name to use in code.
Returns true if there is a matching key (which also has a value)
Returns true if there is a matching key (which also has a value)
NOTE: The value can be blank (e.g. "?foo=" is blank vs "?foo" is null)
The unique set of keys with non-blank values
The unique set of keys with non-null values (blank is a valid value)
The unique set of keys without values
Returns all non-blank values for the given key or throws a NoSuchElementException if the key doesn't have non-null values.
Returns all non-null values for the given key or throws a NoSuchElementException if the key doesn't have non-null values.
Remove a key/value pair based on the key
Remove a key/value pair based on the key
A new QueryParams instance without the keys
Replaces the entry for the given key only if it was previously mapped to some value.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Convert to a Map[String, Seq[String]]
Create a valid query string using the current parameters (everything after the ?).
Create a valid query string using the current parameters (everything after the ?).
e.g.: foo=bar&hello=world
An alias for toQueryString
An alias for toQueryString
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Update multiple key/value pairs
Update multiple key/value pairs
If the key doesn't exist then add it, otherwise replace the first occurance of the key with the new value and remove any other values.
Make sure the key (without a value) exists
Convert all keys to lower case
Add a prefix to each key
Remove any params with blank values
Remove any params with blank values
A new QueryParams instance without blank values
Represents immutable query parameters from a query string (e.g. "?foo=bar&asd=qwe").
This class distinguishes between 3 different types of values for a key: