Class ResultStringValue
java.lang.Object
com.amalgamasimulation.studies.result.ResultElement
com.amalgamasimulation.studies.result.ResultStringValue
- All Implemented Interfaces:
ResultValue
A result element representing a string value. Extends
ResultElement
and implements ResultValue to provide string value functionality
within a hierarchical result structure.
This class provides methods to get and set the string value.
-
Constructor Summary
ConstructorsConstructorDescriptionResultStringValue(String value) Constructs a new ResultStringValue with the specified string value. -
Method Summary
Modifier and TypeMethodDescriptionSets the identifier for this element.value()Gets the string value of this element.Methods inherited from class com.amalgamasimulation.studies.result.ResultElement
children, descendants, element, element, element, element, element, element, element, element, element, element, find, findByTags, findOrThrow, findOrThrow, getChildrenDoubleResults, getChildrenDoubleResults, getChildrenGroups, getChildrenGroups, getDateTimeOrThrow, getDateTimeOrThrow, getFunctionOrDefault, getFunctionOrThrow, getGroupOrThrow, getOrDefault, getOrThrow, getOrThrow, getStringOrThrow, getStringOrThrow, group, group, hasSiblingWithSameId, id, id, parent, path, root, setParent, summaryResultGroup, summaryResultGroup, tag, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.studies.result.ResultValue
path
-
Constructor Details
-
ResultStringValue
Constructs a new ResultStringValue with the specified string value.- Parameters:
value- the string value to store (cannot be null)- Throws:
NullPointerException- if the value parameter is null
-
-
Method Details
-
value
Gets the string value of this element.- Specified by:
valuein interfaceResultValue- Returns:
- the string value (may be null)
-
id
Description copied from class:ResultElementSets the identifier for this element. The ID must be unique among siblings.- Overrides:
idin classResultElement- Parameters:
id- the unique identifier for this element- Returns:
- this element for method chaining
-