public final class JavaQuery extends Query implements scala.Product, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
abstract static R |
apply(T1 v1) |
java.util.Optional<java.lang.String> |
get(java.lang.String key)
Returns the value of the first parameter with the given key if it exists.
|
java.util.List<java.lang.String> |
getAll(java.lang.String key)
Returns the value of all parameters with the given key.
|
java.lang.String |
getOrElse(java.lang.String key,
java.lang.String _default)
Returns the value of the first parameter with the given key or the provided default value.
|
Uri.Query |
query() |
java.lang.String |
render(HttpCharset charset)
Renders this Query into its string representation using the given charset.
|
java.lang.String |
render(HttpCharset charset,
org.parboiled2.CharPredicate keep)
Renders this Query into its string representation using the given charset and char predicate.
|
java.util.List<org.apache.pekko.japi.Pair<java.lang.String,java.lang.String>> |
toList()
Returns a `List` of all parameters of this Query.
|
java.util.Map<java.lang.String,java.lang.String> |
toMap()
Returns a key/value map of the parameters of this Query.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
toMultiMap()
Returns a `Map` of all parameters of this Query.
|
java.lang.String |
toString() |
Query |
withParam(java.lang.String key,
java.lang.String value)
Returns a copy of this instance with a query parameter added.
|
create, create, create, create, create, create
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public JavaQuery(Uri.Query query)
public abstract static R apply(T1 v1)
public Uri.Query query()
public java.util.Optional<java.lang.String> get(java.lang.String key)
Query
public java.util.Map<java.lang.String,java.lang.String> toMap()
Query
public java.util.List<org.apache.pekko.japi.Pair<java.lang.String,java.lang.String>> toList()
Query
public java.lang.String getOrElse(java.lang.String key, java.lang.String _default)
Query
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> toMultiMap()
Query
toMultiMap
in class Query
public java.util.List<java.lang.String> getAll(java.lang.String key)
Query
public java.lang.String toString()
toString
in class java.lang.Object
public Query withParam(java.lang.String key, java.lang.String value)
Query
public java.lang.String render(HttpCharset charset)
Query
public java.lang.String render(HttpCharset charset, org.parboiled2.CharPredicate keep)
Query