| Modifier and Type | Method and Description |
|---|---|
static Optional<Map<String,Object>> |
castOptionalStringObjectMap(Object object)
Cast to the optional string-object map
|
static <K> boolean |
containsAnyKey(Map<K,?> map,
K... key)
Check if the map contains any of the keys
|
static <K,V> V |
getIfFound(Map<K,V> map,
K... key)
Get the value given the key from the map
|
static <K,V> V |
getIfFoundOrDefault(Map<K,V> map,
V defaultValue,
K... key)
Get the value given the key from the map
|
@SafeVarargs public static <K,V> V getIfFoundOrDefault(Map<K,V> map, V defaultValue, K... key)
K - the key typeV - the value typemap - the mapdefaultValue - the default valuekey - the key@SafeVarargs public static <K,V> V getIfFound(Map<K,V> map, K... key)
K - the key typeV - the value typemap - the mapkey - the key@SafeVarargs public static <K> boolean containsAnyKey(Map<K,?> map, K... key)
K - the key typemap - the mapkey - the keyCopyright © 2023. All rights reserved.