Class Output.Cache<K,V>

java.lang.Object
org.immutables.generator.Output.Cache<K,V>
Enclosing class:
Output

@NotThreadSafe private abstract static class Output.Cache<K,V> extends Object
  • Field Details

    • map

      private final Map<K,V> map
  • Constructor Details

    • Cache

      private Cache()
  • Method Details

    • load

      protected abstract V load(K key) throws Exception
      Throws:
      Exception
    • get

      final V get(K key)
    • asMap

      public Map<K,V> asMap()
    • clear

      void clear()