-
public final class PrefsHashMap<Key extends Object, Value extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerinternalLevelprivate final transient Function1<<ERROR CLASS><Key, Value>, Unit>changedCallback
-
Constructor Summary
Constructors Constructor Description PrefsHashMap(Function1<<ERROR CLASS><Key, Value>, Unit> changedCallback)
-
Method Summary
Modifier and Type Method Description final IntegergetInternalLevel()final UnitsetInternalLevel(Integer internalLevel)final Function1<<ERROR CLASS><Key, Value>, Unit>getChangedCallback()Unitclear()Valueput(Key key, Value value)UnitputAll(Map<out Key, Value> from)Valueremove(Key key)Booleanremove(Key key, Value value)UnitreplaceAll(BiFunction<in Key, in Value, out Value> function)ValueputIfAbsent(Key key, Value value)Booleanreplace(Key key, Value oldValue, Value newValue)Valuereplace(Key key, Value value)-
-
Method Detail
-
getInternalLevel
final Integer getInternalLevel()
-
setInternalLevel
final Unit setInternalLevel(Integer internalLevel)
-
getChangedCallback
final Function1<<ERROR CLASS><Key, Value>, Unit> getChangedCallback()
-
remove
@RequiresApi(value = 24) Boolean remove(Key key, Value value)
-
replaceAll
@RequiresApi(value = 24) Unit replaceAll(BiFunction<in Key, in Value, out Value> function)
-
putIfAbsent
@RequiresApi(value = 24) Value putIfAbsent(Key key, Value value)
-
replace
@RequiresApi(value = 24) Value replace(Key key, Value value)
-
-
-
-