Class Output.Cache<K,​V>

  • Enclosing class:
    Output

    @NotThreadSafe
    private abstract static class Output.Cache<K,​V>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<K,​V> map  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Cache()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<K,​V> asMap()  
      (package private) void clear()  
      (package private) V get​(K key)  
      protected abstract V load​(K key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        private final java.util.Map<K,​V> map
    • Constructor Detail

      • Cache

        private Cache()
    • Method Detail

      • load

        protected abstract V load​(K key)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • get

        final V get​(K key)
      • asMap

        public java.util.Map<K,​V> asMap()
      • clear

        void clear()