Interface ReadableListValue<E>
-
- Type Parameters:
E
- type of theelements
.
- All Superinterfaces:
ReadableCollectionValue<List<E>,E>
,ReadableContainerValue<List<E>,E>
,ReadableObjectValue<List<E>>
,ReadableTypedObjectValue<List<E>>
,ReadableTypedValue<List<E>>
,ReadableValue<List<E>>
,Supplier<List<E>>
- All Known Subinterfaces:
ObservableListValue<E>
,ReadableListProperty<E>
,WritableListProperty<E>
,WritableListValue<E>
- All Known Implementing Classes:
ListProperty
public interface ReadableListValue<E> extends ReadableCollectionValue<List<E>,E>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<E>
getSafe()
default Class<List<E>>
getValueClass()
-
Methods inherited from interface io.github.mmm.value.observable.container.collection.ReadableCollectionValue
size
-
Methods inherited from interface io.github.mmm.value.observable.container.ReadableContainerValue
isEmpty
-
Methods inherited from interface io.github.mmm.value.observable.object.ReadableObjectValue
getValue
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
-
-
-
Method Detail
-
getValueClass
default Class<List<E>> getValueClass()
- Specified by:
getValueClass
in interfaceReadableTypedValue<E>
- 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 List<E> getSafe()
- Specified by:
getSafe
in interfaceReadableObjectValue<E>
- Specified by:
getSafe
in interfaceReadableValue<E>
- 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.).
-
-