Interface ReadOnlyMap<K,​V>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ReadOnlyMap EMPTY  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Some implementations might hold on to references, which could be just heavy or potentially harmful, such as ClassLoader leaks: allow for proper cleanup.
      V get​(K key)
      The main operation.
    • Method Detail

      • get

        V get​(K key)
        The main operation.
        Parameters:
        key -
        Returns:
        the corresponding object, or null if there is no association with any entry.
      • dispose

        void dispose()
        Some implementations might hold on to references, which could be just heavy or potentially harmful, such as ClassLoader leaks: allow for proper cleanup.