-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
WeakIndexCache
public WeakIndexCache()
-
Method Detail
-
cache
public V cache(K s,
V v)
- Parameters:
s - the cache key
v - the cache value
- Returns:
- the cached value
-
get
public V get(K k)
- Parameters:
k - the key
- Returns:
- the value
-
clear
public void clear()
empty the cache.
Copyright © 2014 The University of Manchester. All Rights Reserved.