public static class Bindings.NullBinding extends Bindings.Binding
NULL
binding.Constructor and Description |
---|
NullBinding(BindMarker marker,
Class<?> valueType) |
Modifier and Type | Method and Description |
---|---|
void |
apply(BindTarget bindTarget)
Applies the binding to a
BindTarget . |
Object |
getValue()
Returns the value of this binding.
|
Class<?> |
getValueType() |
boolean |
hasValue()
Return true if there is a value present, otherwise false for a
NULL binding. |
getBindMarker, isNull
public NullBinding(BindMarker marker, Class<?> valueType)
public boolean hasValue()
Bindings.Binding
NULL
binding.hasValue
in class Bindings.Binding
NULL
binding.@Nullable public Object getValue()
Bindings.Binding
NULL
binding.getValue
in class Bindings.Binding
NULL
binding.public Class<?> getValueType()
public void apply(BindTarget bindTarget)
Bindings.Binding
BindTarget
.apply
in class Bindings.Binding
bindTarget
- the target to apply bindings to.Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.