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.
|
Modifier and Type | Method and Description |
---|---|
Object |
get()
Simply returns the value as given at construction time.
|
public SimpleValueWrapper(Object value)
value
- the value to expose (may be null
)public Object get()
get
in interface Cache.ValueWrapper