E - The type of elementpublic interface Value<E> extends BaseValue<E>
| Modifier and Type | Method and Description |
|---|---|
ImmutableValue<E> |
asImmutable()
Gets the
ImmutableValue version of this Value such that
all data is duplicated across to the new ImmutableValue. |
Value<E> |
copy()
Makes an independent copy of this
Value with the same initial
data. |
Value<E> |
set(E value)
Sets the underlying value to the provided
value. |
Value<E> |
transform(Function<E,E> function)
Attempts to transform the underlying value based on the provided
Function such that the result of Function.apply(Object)
will replace the underlying value. |
Value<E> set(E value)
value.value - The value to setValueContainerValue<E> transform(Function<E,E> function)
Function such that the result of Function.apply(Object)
will replace the underlying value.function - The function to apply on the existing valueValueContainerImmutableValue<E> asImmutable()
ImmutableValue version of this Value such that
all data is duplicated across to the new ImmutableValue. Note
that once created, the ImmutableValue is not going to change.ImmutableValue instance