Class CachedObject

  • All Implemented Interfaces:
    Comparable

    public class CachedObject
    extends Object
    implements Comparable
    Class the contains a cacheable object. These are what is stored in the cache and are comparable by their timestamps.

    Created by Jeff Gaynor
    on Nov 11, 2010 at 1:02:39 PM

    • Constructor Detail

      • CachedObject

        public CachedObject()
      • CachedObject

        public CachedObject​(String key,
                            Object value)
    • Method Detail

      • getValue

        public Object getValue()
      • setValue

        public void setValue​(Object value)
      • setKey

        public void setKey​(String key)
      • getKey

        public String getKey()
      • getTimestamp

        public Date getTimestamp()
      • getTime

        public long getTime()
      • setTimestamp

        public void setTimestamp​(Date timestamp)