org.springframework.cache.Cache.ValueWrapper ,
simply holding the value as given at construction and returning it from get().
| Access | Constructor and Description |
|---|---|
| public | SimpleValueWrapper(Object
the value to expose (may be value)null)Create a new SimpleValueWrapper instance for exposing the given value. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Object | get()
Implements org. Simply returns the value as given at construction time. |
| public int | |
| public String |
| value | back to summary |
|---|---|
| private final Object value
| |
| SimpleValueWrapper | back to summary |
|---|---|
| public SimpleValueWrapper(Object value) Create a new SimpleValueWrapper instance for exposing the given value.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public Object get() Implements org. Simply returns the value as given at construction time. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |