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 newQueryParamsinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String key)static QueryParamsempty()LonggetLong(String key)Gets the parameter as long for the given key.StringgetString(String key)Gets the parameter as string for the given key.<V> VgetValue(String key)Gets the parameter for the given key.Map<String,Object>originals()StringtoString()
-
-
-
Constructor Detail
-
QueryParams
public QueryParams(Map<String,Object> params)
Creates a newQueryParamsinstance.- 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)
-
-