Module is.codion.framework.domain
Interface DerivedValue.SourceValues
- Enclosing interface:
DerivedValue<T>
public static sealed interface DerivedValue.SourceValues
Provides the source values from which to derive a value.
-
Method Summary
-
Method Details
-
get
Returns the value associated with the given source attribute.- Type Parameters:
T- the value type- Parameters:
attribute- the source attribute which value to retrieve- Returns:
- the value associated with the given source attribute
- Throws:
IllegalArgumentException- in case the given attribute is not a source attribute
-
optional
Returns the source value associated with the given attribute or an emptyOptionalif the associated value is null or if the given attribute is not a source attribute- Type Parameters:
T- the value type- Parameters:
attribute- the attribute which value to retrieve- Returns:
- the value associated with attribute
-