net.jxta.impl.util
Class Cache.CacheEntryImpl
java.lang.Object
net.jxta.impl.util.Dlink
net.jxta.impl.util.Cache.CacheEntryImpl
- All Implemented Interfaces:
- CacheEntry
- Enclosing class:
- Cache
class Cache.CacheEntryImpl
- extends Dlink
- implements CacheEntry
CacheEntryImpl objects are both part of a doubly linked list and
inserted in a HashMap. They refer to the thing mapped which is what
users of this class want to get, and to the key. The reason is
that we need the key to remove from the map
an entry that we found in list. The otherway around is made easy by
the nature of the dlinked structure.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cache.CacheEntryImpl
public Cache.CacheEntryImpl(Object k,
Object v)
getKey
public Object getKey()
-
- Specified by:
getKey
in interface CacheEntry
getValue
public Object getValue()
-
- Specified by:
getValue
in interface CacheEntry