Class Registry<K,​T>


  • public class Registry<K,​T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Registry()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      void forEach​(java.util.function.BiConsumer<K,​T> action)  
      T get​(K key)  
      boolean isEmpty()  
      boolean isRegistered​(K key)  
      java.util.Collection<K> keys()  
      void put​(K key, T value)  
      void remove​(K key)  
      int size()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Registry

        public Registry()
    • Method Detail

      • put

        public void put​(K key,
                        T value)
      • get

        public T get​(K key)
      • isRegistered

        public boolean isRegistered​(K key)
      • remove

        public void remove​(K key)
      • keys

        public java.util.Collection<K> keys()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • clear

        public void clear()
      • forEach

        public void forEach​(java.util.function.BiConsumer<K,​T> action)