T
- the value typepublic interface PropertyValue<T> extends Value<T>
Value.Validator<T>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Sets this value to null as well as removing it from the underlying store and clearing the system property.
|
T |
getOrThrow()
Returns the underlying value, if the value is null then a
IllegalStateException is thrown. |
T |
getOrThrow(String message)
Returns the underlying value, if the value is null then a
IllegalStateException is thrown. |
String |
propertyName() |
addValidator, link, link, linkedValues, observer, propertyValue, removeValidator, set, unlink, unlink, validators, value, value, value, value, value
equalTo, isNotNull, isNull, isNullable, toOptional
addDataListener, addListener, removeDataListener, removeListener
onEvent
String propertyName()
T getOrThrow() throws IllegalStateException
IllegalStateException
is thrown.IllegalStateException
- in case the underlying value is nullT getOrThrow(String message) throws IllegalStateException
IllegalStateException
is thrown.message
- the error message to use when throwingIllegalStateException
- in case the underlying value is nullvoid clear()