T
- the type of the value held by the cachepublic class ValueCacheImpl<T> extends Object implements ValueCache<T>
Constructor and Description |
---|
ValueCacheImpl(Class<T> dataType)
Creates a new cache for the given data type.
|
public T readValue()
readValue
in interface ReadFunction<T>
public void writeValue(Object newValue)
writeValue
in interface WriteFunction<T>
newValue
- the new valuepublic Class<T> getType()
getType
in interface ValueCache<T>
Copyright © 2010–2015. All rights reserved.