Class KeyMap
-
- All Implemented Interfaces:
-
com.skillw.pouvoir.api.plugin.map.RegContainer,java.io.Serializable,java.util.concurrent.ConcurrentMap,kotlin.collections.Map,kotlin.collections.MutableMap
public class KeyMap<K extends Object, V extends Keyable<K>> extends BaseMap<K, V>
ClassName : com.skillw.classsystem.api.plugin.map.KeyMap Created by Glom_ on 2021-03-26 22:03:17 Copyright 2021 user.
-
-
Constructor Summary
Constructors Constructor Description KeyMap()
-
Method Summary
Modifier and Type Method Description Vget(K key)Vremove(K key)Removes the specified key and its corresponding value from this map. BooleancontainsKey(K key)Vset(K key, V value)Vput(K key, V value)Associates the specified value with the specified key in the map. UnitputAll(Map<out K, V> from)Updates this map with key/value pairs from the specified map from. VcomputeIfAbsent(K key, Function<in K, out V> mappingFunction)Vcompute(K key, BiFunction<in K, in V, out V> remappingFunction)Vmerge(K key, V value, BiFunction<in V, in V, out V> remappingFunction)VputIfAbsent(K key, V value)Unitregister(V value)Register final UnitremoveByValue(V value)Remove by value -
-
Method Detail
-
remove
V remove(K key)
Removes the specified key and its corresponding value from this map.
- Returns:
the previous value associated with the key, or
nullif the key was not present in the map.
-
containsKey
Boolean containsKey(K key)
-
put
V put(K key, V value)
- Returns:
the previous value associated with the key, or
nullif the key was not present in the map.
-
putAll
Unit putAll(Map<out K, V> from)
Updates this map with key/value pairs from the specified map from.
-
putIfAbsent
V putIfAbsent(K key, V value)
-
removeByValue
final Unit removeByValue(V value)
Remove by value
-
-
-
-