<T> T
compute(DataMap.DataKey<? extends K,T> key, Function<? super @Nullable T,? extends T> function)
Create or replace a mapping with a value computed from the current value (or null if missing).
<T> T
computeIfAbsent(DataMap.DataKey<? extends K,T> key, Supplier<? extends T> supplier)
Retrieve the value, or compute it if it is missing.
<T> @Nullable T
get(DataMap.DataKey<? extends K,? extends T> key)
Retrieves the data currently mapped to the key.
<T> T
getOrDefault(DataMap.DataKey<? extends K,? extends T> key, T defaultValue)
boolean
isSet(DataMap.DataKey<? extends K,?> key)
Returns true if the given key has a non-null value in the map.
static <K> DataMap<K>
newDataMap()
<T> @Nullable T
set(DataMap.DataKey<? extends K,? super T> key, T data)
Set the mapping to the given data.
static <T> DataMap.SimpleDataKey<T>
simpleDataKey(String name)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4