Interface ReadableSetValue<E>
-
- Type Parameters:
E
- type of theelements
.
- All Superinterfaces:
ReadableCollectionValue<Set<E>,E>
,ReadableContainerValue<Set<E>,E>
,ReadableObjectValue<Set<E>>
,ReadableTypedObjectValue<Set<E>>
,ReadableTypedValue<Set<E>>
,ReadableValue<Set<E>>
,Supplier<Set<E>>
- All Known Subinterfaces:
ObservableSetValue<E>
,ReadableSetProperty<E>
,WritableSetProperty<E>
,WritableSetValue<E>
- All Known Implementing Classes:
SetProperty
public interface ReadableSetValue<E> extends ReadableCollectionValue<Set<E>,E>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Set<E>
getSafe()
default Class<Set<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<Set<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 Set<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.).
-
-