Class LazyRemovalCache.Entry<V>

  • Enclosing class:
    LazyRemovalCache<K,​V>

    public static class LazyRemovalCache.Entry<V>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean removable  
      protected long timestamp  
      protected V val  
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(V val)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V getVal()  
      boolean isRemovable()  
      void setRemovable​(boolean flag)  
      java.lang.String toString()  
      java.lang.String toString​(java.util.function.Function<V,​java.lang.String> print_val)  
      • Methods inherited from class java.lang.Object

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

      • val

        protected final V val
      • timestamp

        protected long timestamp
      • removable

        protected boolean removable
    • Constructor Detail

      • Entry

        public Entry​(V val)
    • Method Detail

      • isRemovable

        public boolean isRemovable()
      • setRemovable

        public void setRemovable​(boolean flag)
      • getVal

        public V getVal()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.util.function.Function<V,​java.lang.String> print_val)