T
- the wrapped type@Value.Immutable public abstract class UpdateValue<T> extends Object
Constructor and Description |
---|
UpdateValue() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSet()
Whether this update value is set or unset.
|
static <T> UpdateValue<T> |
set(T value)
An update value indicating that the value should be changed.
|
String |
toString() |
static <T> UpdateValue<T> |
unset()
An update value indicating that the value should be reset to its default
value.
|
abstract T |
valueOrNull()
Returns the update value or
null if unset. |
@Nonnull public static <T> UpdateValue<T> unset()
T
- the wrapped type@Nonnull public static <T> UpdateValue<T> set(@Nullable T value)
null
value is equivalent to using
unset()
.T
- the wrapped typevalue
- the new value@Nullable public abstract T valueOrNull()
null
if unset.null
otherwisepublic final boolean isSet()
true
if set; false
otherwiseCopyright © 2016–2019 CLX Communications. All rights reserved.