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