public class SimpleNullableProperty<T> extends AbstractBasicChangeableItem implements Property<T>
null
.
You can define a specific matcher which allows to define when a value will be changed
in the setValue(Object)
method.
The default is to use the Object.equals(Object)
method.
Constructor and Description |
---|
SimpleNullableProperty(java.lang.String basicName)
Constructor.
|
SimpleNullableProperty(java.lang.String basicName,
T value)
Constructor.
|
SimpleNullableProperty(java.lang.String basicName,
T value,
UniformMatcher<? super T> matcher)
Constructor.
|
SimpleNullableProperty(java.lang.String basicName,
UniformMatcher<? super T> matcher)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Get the value of the property.
|
void |
setValue(T value)
Set the value.
|
addValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeakly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeakly
public SimpleNullableProperty(@NotNull java.lang.String basicName)
Object.equals(Object)
method
and an initial value of null
.basicName
- property namepublic SimpleNullableProperty(@NotNull java.lang.String basicName, @Nullable T value)
Object.equals(Object)
method.basicName
- property namevalue
- initial valuepublic SimpleNullableProperty(@NotNull java.lang.String basicName, @NotNull UniformMatcher<? super T> matcher)
null
.basicName
- property namematcher
- matcher which defines whether a newly set value differs from the current valuepublic SimpleNullableProperty(@NotNull java.lang.String basicName, @Nullable T value, @NotNull UniformMatcher<? super T> matcher)
basicName
- property namevalue
- initial valuematcher
- matcher which defines whether a newly set value differs from the current value