Class ResultDateTimeValue
java.lang.Object
com.amalgamasimulation.studies.result.ResultElement
com.amalgamasimulation.studies.result.ResultDateTimeValue
- All Implemented Interfaces:
ResultValue
A result element representing a date-time value. Extends
ResultElement and implements ResultValue to provide date-time
specific functionality within a hierarchical result structure.
This class provides methods to get and set the date-time value.
-
Constructor Summary
ConstructorsConstructorDescriptionResultDateTimeValue(LocalDateTime value) Constructs a new ResultDateTimeValue with the specified date-time value. -
Method Summary
Modifier and TypeMethodDescriptionSets the identifier for this element.value()Gets the date-time 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
-
ResultDateTimeValue
Constructs a new ResultDateTimeValue with the specified date-time value.- Parameters:
value- the date-time value (cannot be null)- Throws:
NullPointerException- if the value parameter is null
-
-
Method Details
-
value
Gets the date-time value of this element.- Specified by:
valuein interfaceResultValue- Returns:
- the date-time value
-
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
-