public class ParameterMap extends Object implements Map<String,Object>, ParameterReadable, Nameable
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
idiomaticValues |
protected Registry<String,? extends Parameter<?>> |
PARAMS |
protected Map<String,Object> |
values |
| Constructor and Description |
|---|
ParameterMap(Registry<String,? extends Parameter<?>> registry) |
ParameterMap(Registry<String,? extends Parameter<?>> registry,
Map<String,?> values)
Copy constructor producing an immutable instance.
|
ParameterMap(Registry<String,? extends Parameter<?>> registry,
Map<String,?> values,
boolean mutable) |
ParameterMap(Set<Parameter<?>> params) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object obj) |
Object |
get(Object o) |
<T> T |
get(Parameter<T> param) |
String |
getName() |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
protected <T> Object |
put(Parameter<T> param,
Object value)
Convenience method to put a value for an idiomatic param.
|
Object |
put(String name,
Object value) |
void |
putAll(Map<? extends String,?> m) |
Object |
remove(Object key) |
protected ParameterMap |
replace(Parameter<?> param) |
int |
size() |
String |
toString() |
Collection<Object> |
values() |
public ParameterMap(Registry<String,? extends Parameter<?>> registry, Map<String,?> values)
registry - registry of idiomatic parameters relevant for the map valuesvalues - map valuesprotected ParameterMap replace(Parameter<?> param)
public <T> T get(Parameter<T> param)
get in interface ParameterReadablepublic boolean containsKey(Object o)
containsKey in interface Map<String,Object>public boolean containsValue(Object o)
containsValue in interface Map<String,Object>protected final <T> Object put(Parameter<T> param, Object value)
param - the param representing the property name to setvalue - the value to setnull if there was no previous valuepublic int hashCode()
Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.