Interface ReadableBooleanValue
-
- All Superinterfaces:
ReadableSimpleValue<Boolean>
,ReadableTypedValue<Boolean>
,ReadableValue<Boolean>
,Supplier<Boolean>
- All Known Subinterfaces:
BooleanExpression
,ObservableBooleanValue
,ReadableBooleanProperty
,WritableBooleanProperty
,WritableBooleanValue
- All Known Implementing Classes:
BooleanBinding
,BooleanProperty
public interface ReadableBooleanValue extends ReadableSimpleValue<Boolean>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Boolean
getSafe()
default boolean
getValue()
default Class<Boolean>
getValueClass()
-
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<Boolean> getValueClass()
- Specified by:
getValueClass
in interfaceReadableTypedValue<Boolean>
- Returns:
- the
Class
reflecting the type ofvalues
that can be stored by this property. Even if thevalue
isnull
the property must support returning the property class.
-
getValue
default boolean getValue()
- Returns:
- the current value as primitive
boolean
. - See Also:
ReadableValue.get()
-
getSafe
default Boolean getSafe()
- Specified by:
getSafe
in interfaceReadableValue<Boolean>
- Returns:
- the same as
ReadableValue.get()
but trying to avoid returningnull
where possible. So a neutral element is returned instead ofnull
for each type supporting this (e.g. "" forString
,0
for any kind ofNumber
,Boolean.FALSE
, empty collection, etc.).
-
-