lima.storage
Class SimpleCache

java.lang.Object
  |
  +--lima.storage.SimpleCache
All Implemented Interfaces:
Cache

public class SimpleCache
extends java.lang.Object
implements Cache

A trivial cache that only remembers the last object that was stored.


Constructor Summary
SimpleCache()
           
 
Method Summary
 java.lang.Object getObject(int name)
          Get the object in the cache that was last checked in under the name int.
 void putObject(int name, java.lang.Object data)
          Object data into the cache under the name name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCache

public SimpleCache()
Method Detail

putObject

public void putObject(int name,
                      java.lang.Object data)
Description copied from interface: Cache
Object data into the cache under the name name.

Specified by:
putObject in interface Cache
Parameters:
name - - A unique integer name for the object
See Also:
Cache.putObject(int, java.lang.Object)

getObject

public java.lang.Object getObject(int name)
Description copied from interface: Cache
Get the object in the cache that was last checked in under the name int.

Specified by:
getObject in interface Cache
Parameters:
name -
Returns:
Object
See Also:
Cache.getObject(int)