V
- the type of the vlauepublic class CurrentValueNotSetOverride<V> extends Object implements MayOverride<V>
null
).Constructor and Description |
---|
CurrentValueNotSetOverride(V value)
Initializes with the new value to set if current value is not set.
|
Modifier and Type | Method and Description |
---|---|
V |
override(V currentValue)
If the new value should override the current value, the new value is
returned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alwaysOverride, overrideIfNonNull, overrideIfNotSet
public CurrentValueNotSetOverride(V value)
value
- the new valuepublic V override(V currentValue)
MayOverride
override
in interface MayOverride<V>
currentValue
- the current value that may be overriddenCopyright © 2021. All rights reserved.