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

    Nested classes/interfaces inherited from class java.util.AbstractMap

    java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>

    Nested classes/interfaces inherited from interface java.util.Map

    java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
  • 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

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Map

    compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
  • Constructor Details

  • Method Details

    • entrySet

      public java.util.Set<java.util.Map.Entry<NamespaceID,​V>> entrySet()
      Specified by:
      entrySet in interface java.util.Map<NamespaceID,​V>
      Specified by:
      entrySet in class java.util.AbstractMap<NamespaceID,​V>
    • get

      public V get​(java.lang.Object key)
      Specified by:
      get in interface java.util.Map<NamespaceID,​V>
      Overrides:
      get in class java.util.AbstractMap<NamespaceID,​V>
    • put

      public V put​(NamespaceID key, V value)
      Specified by:
      put in interface java.util.Map<NamespaceID,​V>
      Overrides:
      put in class java.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

      public V get​(java.lang.String id)
    • get

      public V get​(java.lang.String domain, java.lang.String path)
    • put

      public V put​(java.lang.String domain, java.lang.String path, V value)
    • computeIfAbsent

      public V computeIfAbsent​(java.lang.String domain, java.lang.String path, java.util.function.Function<? super NamespaceID,​? extends V> mappingFunction)
    • put

      public V put​(java.lang.String id, V value)
    • computeIfAbsent

      public V computeIfAbsent​(java.lang.String id, java.util.function.Function<? super NamespaceID,​? extends V> mappingFunction)
    • getOrDefault

      public V getOrDefault​(java.lang.String id, V defaultValue)
    • getOrDefault

      public V getOrDefault​(java.lang.String domain, java.lang.String path, V defaultValue)