Interface ReadableLongValue
-
- All Superinterfaces:
ReadableNumberValue<Long>
,ReadableSimpleValue<Long>
,ReadableTypedValue<Long>
,ReadableValue<Long>
,Supplier<Long>
- All Known Subinterfaces:
LongExpression
,ObservableLongValue
,ReadableLongProperty
,WritableLongProperty
,WritableLongValue
- All Known Implementing Classes:
DurationInSecondsProperty
,LongBinding
,LongProperty
public interface ReadableLongValue extends ReadableNumberValue<Long>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Long
getSafe()
default long
getValue()
default Class<Long>
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<Long> getValueClass()
- Specified by:
getValueClass
in interfaceReadableTypedValue<Long>
- 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 long getValue()
- Returns:
- the current value as primitive. Will be
0
if undefined.
-
getSafe
default Long getSafe()
- Specified by:
getSafe
in interfaceReadableValue<Long>
- 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.).
-
-