Interface QueryParams
-
- All Known Implementing Classes:
GenericQueryParams
public interface QueryParams
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(String key)
Checks whether thisQueryParams
contains the given key param.Map<String,Object>
getAsMap()
Gets all query params asMap
.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.
-
-
-
Method Detail
-
getValue
<V> V getValue(String key)
Gets the parameter for the given key.- Parameters:
key
- the parameter key.- Returns:
- the object value.
-
getString
String getString(String key)
Gets the parameter as string for the given key.- Parameters:
key
- the parameter key.- Returns:
- the string value.
-
getLong
Long getLong(String key)
Gets the parameter as long for the given key.- Parameters:
key
- the parameter key.- Returns:
- the long value.
-
contains
boolean contains(String key)
Checks whether thisQueryParams
contains the given key param.- Parameters:
key
- the key params.- Returns:
true
if thisQueryParams
contains the given key.
-
-