Module io.github.mmm.property
Package io.github.mmm.property.range
Interface ReadableRangeProperty<V>
-
- Type Parameters:
V
- type of theRange
bounds.
- All Superinterfaces:
EventSource<ObservableEvent<Range<V>>,ObservableEventListener<? super Range<V>>>
,MarshallableObject
,Marshaller<Object>
,ObservableValue<Range<V>>
,PropertyPath<Range<V>>
,ReadableProperty<Range<V>>
,ReadableTypedValue<Range<V>>
,ReadableValue<Range<V>>
,Supplier<Range<V>>
,TypedPropertyPath<Range<V>>
,Validatable
- All Known Subinterfaces:
WritableRangeProperty<V>
- All Known Implementing Classes:
RangeProperty
public interface ReadableRangeProperty<V> extends ReadableProperty<Range<V>>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Range<V>
getSafe()
default Class<Range<V>>
getValueClass()
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.marshall.MarshallableObject
write, writeObject
-
Methods inherited from interface io.github.mmm.value.observable.ObservableValue
toString
-
Methods inherited from interface io.github.mmm.property.ReadableProperty
getMetadata, getName, isReadOnly, isTransient, isValid
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
Methods inherited from interface io.github.mmm.validation.Validatable
validate
-
-
-
-
Method Detail
-
getValueClass
default Class<Range<V>> getValueClass()
- Specified by:
getValueClass
in interfaceReadableTypedValue<V>
- 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.
-
getSafe
default Range<V> getSafe()
- Specified by:
getSafe
in interfaceReadableValue<V>
- 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.).
-
-