Interface OptionalValueHolder<V>
- Type Parameters:
V- the type of the value of aOptionalValueHolder
- All Known Subinterfaces:
FluentMutableOptionalValueHolder<H,V>, IMutableXmlNode, IXmlNode<N>, MutableOptionalValueHolder<V>
- All Known Implementing Classes:
MutableXmlNode
public interface OptionalValueHolder<V>
A
OptionalValueHolder can contain a value.- Author:
- Silvan Wyss
-
Method Summary
-
Method Details
-
getStoredValue
V getStoredValue()- Returns:
- the value of the current
OptionalValueHolder - Throws:
RuntimeException- if the currentOptionalValueHolderdoes not contain a value
-
hasValue
boolean hasValue()- Returns:
- true if the current
OptionalValueHoldercontains a value, false otherwise
-