public interface ValueStore
ConnectionInfo
,
MethodExecutionInfo
,
QueryExecutionInfo
Modifier and Type | Method and Description |
---|---|
static ValueStore |
create()
Create default
ValueStore . |
Object |
get(Object key)
Get the value associated to the key.
|
<T> T |
get(Object key,
Class<T> type)
Get the value associated to the key and cast to the type.
|
<T> T |
getOrDefault(Object key,
T defaultValue)
Get the value associated to the key; otherwise returns specified value.
|
void |
put(Object key,
Object value)
Store a value associating the provided key.
|
void |
putAll(Map<Object,Object> map)
Store all key value pairs from provided map.
|
Object |
remove(Object key)
Remove the value associated to the provided key.
|
static ValueStore create()
ValueStore
.@Nullable Object get(Object key)
key
- keynull
IllegalArgumentException
- if key
is null
@Nullable <T> T get(Object key, Class<T> type)
T
- value typekey
- keytype
- value type to castnull
IllegalArgumentException
- if key
is null
IllegalArgumentException
- if type
is null
<T> T getOrDefault(Object key, T defaultValue)
T
- value typekey
- keydefaultValue
- default valueIllegalArgumentException
- if key
is null
void put(Object key, Object value)
key
- keyvalue
- valueIllegalArgumentException
- if key
is null
IllegalArgumentException
- if value
is null
void putAll(Map<Object,Object> map)
map
- mapIllegalArgumentException
- if map
is null
@Nullable Object remove(Object key)
key
- keynull
if key did not existIllegalArgumentException
- if key
is null
Copyright © 2024. All rights reserved.