Interface IValueAccessor<V>
- Type Parameters:
V- The type of the value
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
JsonParametersValueAccessor, PromptTestValueAccessor
Interface for accessing a value, combining a getter and a setter.
-
Method Summary
Modifier and TypeMethodDescriptionget()Gets the value.booleanhasValue()Checks if a value is present.voidRemoves the value (so thathasValue()returns false).voidSets the value.
-
Method Details
-
get
-
hasValue
boolean hasValue()Checks if a value is present.- Returns:
- true if a value is present, false otherwise
-
removeValue
void removeValue()Removes the value (so thathasValue()returns false). -
set
Sets the value. This will makehasValue()return true.- Parameters:
value- The value to set
-