V - the type of the valuepublic class NonNullOverride<V> extends Object implements MayOverride<V>
null.| Constructor and Description |
|---|
NonNullOverride(V value)
Initializes with the new value to set if the new value is not
null. |
| 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, waitalwaysOverride, overrideIfNonNull, overrideIfNotSetpublic NonNullOverride(V value)
null.value - the new valuepublic V override(V currentValue)
MayOverrideoverride in interface MayOverride<V>currentValue - the current value that may be overriddenCopyright © 2021. All rights reserved.