-
- Type Parameters:
V- type of thevalue.
- All Superinterfaces:
Supplier<V>
- All Known Subinterfaces:
BigDecimalExpression,BigIntegerExpression,BooleanExpression,ByteExpression,ComparableExpression<V>,DoubleExpression,Expression<V>,FloatExpression,InstantExpression,IntegerExpression,LocalDateExpression,LocalDateTimeExpression,LocalTimeExpression,LongExpression,NumberExpression<N>,ObservableBigDecimalValue,ObservableBigIntegerValue,ObservableBooleanValue,ObservableByteValue,ObservableCollectionValue<C,E>,ObservableContainerValue<C,E>,ObservableDoubleValue,ObservableFloatValue,ObservableInstantValue,ObservableIntegerValue,ObservableListValue<E>,ObservableLocalDateTimeValue,ObservableLocalDateValue,ObservableLocalTimeValue,ObservableLongValue,ObservableMapValue<K,V>,ObservableNumberValue<N>,ObservableObjectValue<V>,ObservableOffsetDateTimeValue,ObservableOffsetTimeValue,ObservableSetValue<E>,ObservableShortValue,ObservableSimpleValue<V>,ObservableStringValue,ObservableTemporalValue<V>,ObservableValue<V>,ObservableZonedDateTimeValue,OffsetDateTimeExpression,OffsetTimeExpression,PropertyPath<V>,ReadableBeanProperty<V>,ReadableBigDecimalProperty,ReadableBigDecimalValue,ReadableBigIntegerProperty,ReadableBigIntegerValue,ReadableBooleanProperty,ReadableBooleanValue,ReadableByteProperty,ReadableByteValue,io.github.mmm.property.container.collection.ReadableCollectionProperty<V,E>,ReadableCollectionValue<C,E>,ReadableContainerProperty<V,E>,ReadableContainerValue<C,E>,ReadableDoubleProperty,ReadableDoubleValue,ReadableFloatProperty,ReadableFloatValue,ReadableInstantProperty,ReadableInstantValue,ReadableIntegerProperty,ReadableIntegerValue,ReadableListProperty<E>,ReadableListValue<E>,ReadableLocalDateProperty,ReadableLocalDateTimeProperty,ReadableLocalDateTimeValue,ReadableLocalDateValue,ReadableLocalTimeProperty,ReadableLocalTimeValue,ReadableLongProperty,ReadableLongValue,ReadableMapProperty<K,V>,ReadableMapValue<K,V>,ReadableNumberProperty<N>,ReadableNumberValue<N>,ReadableObjectProperty<V>,ReadableObjectValue<V>,ReadableOffsetDateTimeProperty,ReadableOffsetDateTimeValue,ReadableOffsetTimeProperty,ReadableOffsetTimeValue,ReadableProperty<V>,ReadableRangeProperty<V>,ReadableSetProperty<E>,ReadableSetValue<E>,ReadableShortProperty,ReadableShortValue,ReadableSimpleProperty<V>,ReadableSimpleValue<V>,ReadableStringProperty,ReadableStringValue,ReadableTemporalValue<V>,ReadableTypedObjectValue<V>,ReadableTypedValue<V>,ReadableZonedDateTimeProperty,ReadableZonedDateTimeValue,ShortExpression,StringExpression,TemporalExpression<V>,TypedPropertyPath<V>,WritableBeanProperty<V>,WritableBigDecimalProperty,WritableBigDecimalValue,WritableBigIntegerProperty,WritableBigIntegerValue,WritableBooleanProperty,WritableBooleanValue,WritableByteProperty,WritableByteValue,io.github.mmm.property.container.collection.WritableCollectionProperty<V,E>,WritableCollectionValue<C,E>,WritableContainerProperty<V,E>,WritableContainerValue<C,E>,WritableDoubleProperty,WritableDoubleValue,WritableFloatProperty,WritableFloatValue,WritableInstantProperty,WritableInstantValue,WritableIntegerProperty,WritableIntegerValue,WritableListProperty<E>,WritableListValue<E>,WritableLocalDateProperty,WritableLocalDateTimeProperty,WritableLocalDateTimeValue,WritableLocalDateValue,WritableLocalTimeProperty,WritableLocalTimeValue,WritableLongProperty,WritableLongValue,WritableMapProperty<K,V>,WritableMapValue<K,V>,WritableNumberProperty<N>,WritableNumberValue<N>,WritableObjectProperty<V>,WritableObjectValue<V>,WritableObservableValue<V>,WritableOffsetDateTimeProperty,WritableOffsetDateTimeValue,WritableOffsetTimeProperty,WritableOffsetTimeValue,WritableProperty<V>,WritableRangeProperty<V>,WritableSetProperty<E>,WritableSetValue<E>,WritableShortProperty,WritableShortValue,WritableSimpleProperty<V>,WritableSimpleValue<V>,WritableStringProperty,WritableStringValue,WritableTemporalValue<V>,WritableValue<V>,WritableZonedDateTimeProperty,WritableZonedDateTimeValue,ZonedDateTimeExpression
- All Known Implementing Classes:
AbstractObservableValue,AbstractWritableObservableValue,BeanProperty,BigDecimalBinding,BigDecimalProperty,BigIntegerBinding,BigIntegerProperty,Binding,BooleanBinding,BooleanProperty,ByteBinding,ByteProperty,io.github.mmm.property.container.collection.CollectionProperty,ContainerProperty,DoubleBinding,DoubleProperty,DurationInSecondsProperty,FloatBinding,FloatProperty,IdProperty,InstantBinding,InstantProperty,IntegerBinding,IntegerProperty,LinkProperty,ListProperty,LocalDateBinding,LocalDateProperty,LocalDateTimeBinding,LocalDateTimeProperty,LocalTimeBinding,LocalTimeProperty,LongBinding,LongProperty,MapProperty,NumberBinding,NumberProperty,ObjectProperty,OffsetDateTimeBinding,OffsetDateTimeBinding,OffsetDateTimeProperty,OffsetTimeProperty,Property,RangeProperty,SetProperty,ShortBinding,ShortProperty,SimpleProperty,StringBinding,StringListProperty,StringProperty,TemporalProperty,ZonedDateTimeBinding,ZonedDateTimeProperty
public interface ReadableValue<V> extends Supplier<V>
This interface gives read access to thevalueof an object.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Vget()static <T> Tget(ReadableValue<T> value)Null-safe access toget().VgetSafe()
-
-
-
Method Detail
-
get
V get()
-
getSafe
V getSafe()
- Returns:
- the same as
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.).
-
get
static <T> T get(ReadableValue<T> value)
Null-safe access toget().- Type Parameters:
T- type of thevalue- Parameters:
value- theReadableValueto unwrap.- Returns:
- the
valueof theReadableValue. Will benullif the givenReadableValueisnullor itsvalueisnull.
-
-