public class SimpleValueWrapper extends Object implements Cache.ValueWrapper
Cache.ValueWrapper
,
simply holding the value as given at construction and returning it from get()
.Constructor and Description |
---|
SimpleValueWrapper(Object value)
Create a new SimpleValueWrapper instance for exposing the given value.
|
public SimpleValueWrapper(Object value)
value
- the value to expose (may be null
)public Object get()
get
in interface Cache.ValueWrapper