|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclassUtils.pack.util.Cache
public class Cache
A simple cache object, which holds affineTransform most n references.
| Constructor Summary | |
|---|---|
Cache(int max)
Constructor for Cache. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Object key)
Find an object into the cache. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Put an object in the cache. |
java.lang.Object |
remove(java.lang.Object key)
Remove an object from the cache. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cache(int max)
max - the maximum number of references to hold.| Method Detail |
|---|
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
key - of the object to put.
public java.lang.Object remove(java.lang.Object key)
key - of the object to remove.
public java.lang.Object get(java.lang.Object key)
key - the key of the object to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||