Module io.github.mmm.property
Package io.github.mmm.property.range
Interface ReadableRangeProperty<V>
-
- Type Parameters:
V- type of theRangebounds.
- 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:
getValueClassin interfaceReadableTypedValue<V>- Returns:
- the
Classreflecting the type ofvaluesthat can be stored by this property. Even if thevalueisnullthe property must support returning the property class.
-
getSafe
default Range<V> getSafe()
- Specified by:
getSafein interfaceReadableValue<V>- 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.).
-
-