Module is.codion.framework.domain
Interface DerivedAttribute.SourceValues
- Enclosing interface:
- DerivedAttribute<T>
public static interface DerivedAttribute.SourceValues
Provides the source values from which to derive the 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 emptyOptional
if 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
-