|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--com.ibm.wbi.util.Cache
An abstract base class for performing simple caching functions.
Dictionary| Constructor Summary | |
Cache()
|
|
| Method Summary | |
abstract void |
clear()
Clears the cache so that it contains no keys or values. |
abstract java.util.Enumeration |
elements()
Returns an enumeration of the values in this cache. |
abstract java.lang.Object |
get(java.lang.Object key)
Returns the value to which the key is mapped in the cache. |
abstract boolean |
isEmpty()
Tests whether this cache contains no keys. |
abstract java.util.Enumeration |
keys()
Returns an enumeration of the keys in this cache. |
abstract java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified key to the specified value in this cache. |
abstract java.lang.Object |
remove(java.lang.Object key)
Removes the specified key and the value to which it is mapped from the cache. |
abstract int |
size()
Returns the number of keys which are mapped to values in this cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Cache()
| Method Detail |
public abstract java.util.Enumeration elements()
elements in class java.util.Dictionarypublic abstract java.lang.Object get(java.lang.Object key)
get in class java.util.Dictionarykey - A key in the cache.null if the key is not mapped to any value.public abstract boolean isEmpty()
isEmpty in class java.util.Dictionarytrue if the cache contains no keys;
false otherwise.public abstract java.util.Enumeration keys()
keys in class java.util.Dictionary
public abstract java.lang.Object put(java.lang.Object key,
java.lang.Object value)
null.put in class java.util.Dictionarykey - The keyvalue - The valuekey was
mapped, or null if key was not mapped
to any value.NullPointerException - If key or
value is null.public abstract java.lang.Object remove(java.lang.Object key)
remove in class java.util.Dictionarykey - The key to be removedkey was mapped, or
null if key was not mapped to any
value.public abstract int size()
size in class java.util.Dictionarypublic abstract void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||