public interface ContextMap
| Modifier and Type | Method and Description |
|---|---|
Object |
clear(String key)
Remove all entries from the Map.
|
Boolean |
getBoolean(String key,
Boolean... optional)
Return the Boolean value stored a the key, or the value of optional if
absent.
|
Float |
getFloat(String key,
Float... optional)
Return the Float value stored a the key, or the value of optional if
absent.
|
Integer |
getInteger(String key,
Integer... optional)
Return the Integer value stored a the key, or the value of optional if
absent.
|
Long |
getLong(String key,
Long... optional)
Return the Float value stored a the key, or the value of optional if
absent.
|
Object |
getObject(String key,
Object... optional)
Return the Object value stored a the key, or the value of optional if
absent.
|
String |
getString(String key,
String... optional)
Return the String value stored a the key, or the value of optional if
absent.
|
Map<Object,Object> |
toMap()
Return a new Map containing all the context key,value pairs.
|
ContextMap |
withBoolean(String key,
Boolean trueOrFalse)
Add (or overwrite) a key,Boolean pair to the Map.
|
ContextMap |
withFloat(String key,
Float aFloat)
Add (or overwrite) a key,Float pair to the Map.
|
ContextMap |
withInteger(String key,
Integer anInteger)
Add (or overwrite) a key,Integer pair to the Map.
|
ContextMap |
withLong(String key,
Long aLong)
Add (or overwrite) a key,Long pair to the Map.
|
ContextMap |
withObject(String key,
Object value)
Add (or overwrite) a key,Object pair to the Map.
|
ContextMap |
withString(String key,
String value)
Add (or overwrite) a key,String pair to the Map.
|
Boolean getBoolean(String key, Boolean... optional)
key - optional - ContextMap withBoolean(String key, Boolean trueOrFalse)
key - value - Long getLong(String key, Long... optional)
key - optional - ContextMap withLong(String key, Long aLong)
key - value - Float getFloat(String key, Float... optional)
key - optional - ContextMap withFloat(String key, Float aFloat)
key - value - Integer getInteger(String key, Integer... optional)
key - optional - ContextMap withInteger(String key, Integer anInteger)
key - value - Object getObject(String key, Object... optional)
key - optional - ContextMap withObject(String key, Object value)
key - value - String getString(String key, String... optional)
key - optional - ContextMap withString(String key, String value)
key - value - Copyright © 2010–2018. All rights reserved.