Class DefaultableProperty<T>
java.lang.Object
com.thecsdev.common.properties.ObjectProperty<T>
com.thecsdev.common.properties.DefaultableProperty<T>
An
ObjectProperty whose value defaults to getDefaultValue()
when attempting to ObjectProperty.set(Object) it to null.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultableProperty(T defaultValue) DefaultableProperty(T value, T defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionfinal TReturns the default value that is assigned when attempting to set the value tonull.Methods inherited from class ObjectProperty
addChangeListener, addFilter, applyFilters, assertCallerIsOwner, get, getHandle, getInterceptor, getOptional, getOwner, getReadOnly, isOwner, removeChangeListener, removeFilter, set, set, setHandle, setInterceptor, setOwner, setReadOnly
-
Constructor Details
-
DefaultableProperty
-
DefaultableProperty
-
-
Method Details
-
getDefaultValue
Returns the default value that is assigned when attempting to set the value tonull.
-