org.eclipse.core.internal.utils
Class Cache.Entry
java.lang.Object
org.eclipse.core.internal.utils.Cache.Entry
- All Implemented Interfaces:
- KeyedHashSet.KeyedElement
- Enclosing class:
- Cache
public class Cache.Entry
- extends java.lang.Object
- implements KeyedHashSet.KeyedElement
Constructor Summary |
Cache.Entry(java.lang.Object key,
java.lang.Object cached,
long timestamp)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Cache.Entry
public Cache.Entry(java.lang.Object key,
java.lang.Object cached,
long timestamp)
compare
public boolean compare(KeyedHashSet.KeyedElement other)
- Specified by:
compare
in interface KeyedHashSet.KeyedElement
discard
public void discard()
getCached
public java.lang.Object getCached()
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface KeyedHashSet.KeyedElement
getKeyHashCode
public int getKeyHashCode()
- Specified by:
getKeyHashCode
in interface KeyedHashSet.KeyedElement
getNext
public Cache.Entry getNext()
getPrevious
public Cache.Entry getPrevious()
getTimestamp
public long getTimestamp()
isHead
public boolean isHead()
isTail
public boolean isTail()
setCached
public void setCached(java.lang.Object cached)
setTimestamp
public void setTimestamp(long timestamp)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object