-
-
Constructor Summary
Constructors
| Constructor and Description |
WeakCache() |
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
K |
cache(K s) |
void |
clear()
empty the cache.
|
boolean |
contains(K k) |
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
WeakCache
public WeakCache()
-
Method Detail
-
cache
public K cache(K s)
- Parameters:
s - the value to cache
- Returns:
- the cached value
-
clear
public void clear()
empty the cache.
Copyright © 2014 The University of Manchester. All Rights Reserved.