Interface IOptionalValue<V>
- Type Parameters:
V- is the type of the value of aIOptionalValue.
- All Superinterfaces:
Clearable, EmptinessRequestable, IBaseValue, INameHolder, IProperty, MaterializationRequestable
- All Known Implementing Classes:
OptionalValue
- Author:
- Silvan Wyss
-
Method Summary
Methods inherited from interface EmptinessRequestable
containsAny, isEmptyMethods inherited from interface INameHolder
getName, getNameInQuotes, hasName, hasSameNameAsMethods inherited from interface IProperty
addedOrChangedAttribute, fillUpAttributesIntoListMethods inherited from interface MaterializationRequestable
isMaterialized, isView
-
Method Details
-
getStoredValue
V getStoredValue()- Returns:
- the value of the current
IOptionalValue. - Throws:
RuntimeException- if the currentIOptionalValuedoes not contain a value.
-
setValue
Sets the given value to the currentIOptionalValue.- Parameters:
value-- Throws:
RuntimeException- if the given value is null.
-