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:
getValueClassin interfaceReadableTypedValue<E>- Returns:
- the
Classreflecting the type ofvaluesthat can be stored by this property. Even if thevalueisnullthe property must support returning the property class.
-
getSafe
default List<E> getSafe()
- Specified by:
getSafein interfaceReadableObjectValue<E>- Specified by:
getSafein interfaceReadableValue<E>- 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.).
-
-