Class ForgetfulMap.CachedValue<V>

  • Enclosing class:
    ForgetfulMap<K,​V>

    private static final class ForgetfulMap.CachedValue<V>
    extends java.lang.Object
    Helper class to store value and timestamps
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long accessed  
      (package private) V value  
      (package private) long written  
    • Constructor Summary

      Constructors 
      Constructor Description
      CachedValue​(V value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • accessed

        long accessed
      • value

        final V value
      • written

        final long written
    • Constructor Detail

      • CachedValue

        CachedValue​(V value)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object