VALUE
- the type of cached valuespublic class Cache<VALUE> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Cache.ValueHandler<VALUE> |
Constructor and Description |
---|
Cache() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the cache.
|
VALUE |
get(Cache.ValueHandler<VALUE> valueHandler)
Returns the value defined by the
Cache.ValueHandler |
public VALUE get(Cache.ValueHandler<VALUE> valueHandler)
Cache.ValueHandler
valueHandler
- which creates the key and the value if necessarypublic void clear()
Copyright © 18.01.2010–2015. All rights reserved.