pnuts.ext
Class RefCache

java.lang.Object
  |
  +--pnuts.lang.Cache
        |
        +--pnuts.ext.RefCache

public final class RefCache
extends Cache


Constructor Summary
RefCache()
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          If key is in the cache it returns value, otherwise null.
 void put(java.lang.Object key, java.lang.Object value)
          Register key and its value into the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefCache

public RefCache()
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Description copied from class: Cache
If key is in the cache it returns value, otherwise null.
Overrides:
get in class Cache

put

public void put(java.lang.Object key,
                java.lang.Object value)
Description copied from class: Cache
Register key and its value into the cache.
Overrides:
put in class Cache