Interface ReadableDoubleValue
-
- All Superinterfaces:
ReadableNumberValue<Double>,ReadableSimpleValue<Double>,ReadableTypedValue<Double>,ReadableValue<Double>,Supplier<Double>
- All Known Subinterfaces:
DoubleExpression,ObservableDoubleValue,ReadableDoubleProperty,WritableDoubleProperty,WritableDoubleValue
- All Known Implementing Classes:
DoubleBinding,DoubleProperty
public interface ReadableDoubleValue extends ReadableNumberValue<Double>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default DoublegetSafe()default doublegetValue()default Class<Double>getValueClass()-
Methods inherited from interface io.github.mmm.value.observable.number.ReadableNumberValue
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
Methods inherited from interface io.github.mmm.value.observable.object.ReadableSimpleValue
getAsString
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
-
-
-
Method Detail
-
getValueClass
default Class<Double> getValueClass()
- Specified by:
getValueClassin interfaceReadableTypedValue<Double>- Returns:
- the
Classreflecting the type ofvaluesthat can be stored by this property. Even if thevalueisnullthe property must support returning the property class.
-
getValue
default double getValue()
- Returns:
- the current value as primitive. Will be
0if undefined.
-
getSafe
default Double getSafe()
- Specified by:
getSafein interfaceReadableValue<Double>- Returns:
- the same as
ReadableValue.get()but trying to avoid returningnullwhere possible. So a neutral element is returned instead ofnullfor each type supporting this (e.g. "" forString,0for any kind ofNumber,Boolean.FALSE, empty collection, etc.).
-
-