Package net.minestom.server.utils
Class NamespaceIDHashMap<V>
java.lang.Object
java.util.AbstractMap<NamespaceID,V>
net.minestom.server.utils.NamespaceIDHashMap<V>
- All Implemented Interfaces:
java.util.Map<NamespaceID,V>
public class NamespaceIDHashMap<V> extends java.util.AbstractMap<NamespaceID,V>
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description NamespaceIDHashMap()
-
Method Summary
Modifier and Type Method Description V
computeIfAbsent(java.lang.String domain, java.lang.String path, java.util.function.Function<? super NamespaceID,? extends V> mappingFunction)
V
computeIfAbsent(java.lang.String id, java.util.function.Function<? super NamespaceID,? extends V> mappingFunction)
boolean
containsKey(java.lang.String id)
boolean
containsKey(java.lang.String domain, java.lang.String path)
java.util.Set<java.util.Map.Entry<NamespaceID,V>>
entrySet()
V
get(java.lang.Object key)
V
get(java.lang.String id)
V
get(java.lang.String domain, java.lang.String path)
V
getOrDefault(java.lang.String domain, java.lang.String path, V defaultValue)
V
getOrDefault(java.lang.String id, V defaultValue)
V
put(java.lang.String domain, java.lang.String path, V value)
V
put(java.lang.String id, V value)
V
put(NamespaceID key, V value)
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
-
Constructor Details
-
NamespaceIDHashMap
public NamespaceIDHashMap()
-
-
Method Details
-
entrySet
- Specified by:
entrySet
in interfacejava.util.Map<NamespaceID,V>
- Specified by:
entrySet
in classjava.util.AbstractMap<NamespaceID,V>
-
get
- Specified by:
get
in interfacejava.util.Map<NamespaceID,V>
- Overrides:
get
in classjava.util.AbstractMap<NamespaceID,V>
-
put
- Specified by:
put
in interfacejava.util.Map<NamespaceID,V>
- Overrides:
put
in classjava.util.AbstractMap<NamespaceID,V>
-
containsKey
public boolean containsKey(java.lang.String id) -
containsKey
public boolean containsKey(java.lang.String domain, java.lang.String path) -
get
-
get
-
put
-
computeIfAbsent
public V computeIfAbsent(java.lang.String domain, java.lang.String path, java.util.function.Function<? super NamespaceID,? extends V> mappingFunction) -
put
-
computeIfAbsent
public V computeIfAbsent(java.lang.String id, java.util.function.Function<? super NamespaceID,? extends V> mappingFunction) -
getOrDefault
-
getOrDefault
-