Class QueryParams
- java.lang.Object
-
- io.streamthoughts.azkarra.api.query.QueryParams
-
public class QueryParams extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryParams(Map<String,Object> params)
Creates a newQueryParams
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String key)
static QueryParams
empty()
Long
getLong(String key)
Gets the parameter as long for the given key.String
getString(String key)
Gets the parameter as string for the given key.<V> V
getValue(String key)
Gets the parameter for the given key.Map<String,Object>
originals()
String
toString()
-
-
-
Constructor Detail
-
QueryParams
public QueryParams(Map<String,Object> params)
Creates a newQueryParams
instance.- Parameters:
params
- the key-value parameters.
-
-
Method Detail
-
empty
public static QueryParams empty()
-
getValue
public <V> V getValue(String key)
Gets the parameter for the given key.- Parameters:
key
- the parameter key.- Returns:
- the object value.
-
getString
public String getString(String key)
Gets the parameter as string for the given key.- Parameters:
key
- the parameter key.- Returns:
- the string value.
-
getLong
public Long getLong(String key)
Gets the parameter as long for the given key.- Parameters:
key
- the parameter key.- Returns:
- the long value.
-
contains
public boolean contains(String key)
-
-