|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.factory.HashCacheEntry
public class HashCacheEntry
An implementation of CacheEntry that is backed by a HashMap.
| Constructor Summary | |
|---|---|
HashCacheEntry()
Get an instance of HashCacheEntry. |
|
| Method Summary | |
|---|---|
void |
cacheInstance(Instance i)
Cache this instance. |
java.util.Collection |
getAllObjects()
Get all of the objects in this cache. |
java.lang.Object |
getById(int id)
Get the object at this ID. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashCacheEntry()
| Method Detail |
|---|
public void cacheInstance(Instance i)
cacheInstance in interface CacheEntrypublic java.lang.Object getById(int id)
getById in interface CacheEntryid - the object ID
public java.util.Collection getAllObjects()
getAllObjects in interface CacheEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||