Record Class JSONVariableValue
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.JSONRecords.JSONVariableValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.period()Returns the value of theperiodrecord component.scenario()Returns the value of thescenariorecord component.Returns the value of thesegmentNamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull Floatvalue()Returns the value of thevaluerecord component.Returns the value of thevariableNamerecord component.
-
Constructor Details
-
JSONVariableValue
public JSONVariableValue(String variableName, @NotNull @NotNull Float value, Integer period, String segmentName, Integer scenario) Creates an instance of aJSONVariableValuerecord class.- Parameters:
variableName- the value for thevariableNamerecord componentvalue- the value for thevaluerecord componentperiod- the value for theperiodrecord componentsegmentName- the value for thesegmentNamerecord componentscenario- the value for thescenariorecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
variableName
Returns the value of thevariableNamerecord component.- Returns:
- the value of the
variableNamerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
period
Returns the value of theperiodrecord component.- Returns:
- the value of the
periodrecord component
-
segmentName
Returns the value of thesegmentNamerecord component.- Returns:
- the value of the
segmentNamerecord component
-
scenario
Returns the value of thescenariorecord component.- Returns:
- the value of the
scenariorecord component
-