Record Class VariableValueData
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.VariableValueData
-
Constructor Summary
ConstructorsConstructorDescriptionVariableValueData(long id, Integer period, @NotNull Float value, LocalDateTime lastChanged, Integer scenarioNumber, Long attachedSegmentId, @NotNull Long attachedVariableId, String user, String sourceFile) Creates an instance of aVariableValueDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachedSegmentIdrecord component.@NotNull LongReturns the value of theattachedVariableIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.Returns the value of thelastChangedrecord component.period()Returns the value of theperiodrecord component.Returns the value of thescenarioNumberrecord component.Returns the value of thesourceFilerecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.@NotNull Floatvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
VariableValueData
public VariableValueData(long id, Integer period, @NotNull @NotNull Float value, LocalDateTime lastChanged, Integer scenarioNumber, Long attachedSegmentId, @NotNull @NotNull Long attachedVariableId, String user, String sourceFile) Creates an instance of aVariableValueDatarecord class.- Parameters:
id- the value for theidrecord componentperiod- the value for theperiodrecord componentvalue- the value for thevaluerecord componentlastChanged- the value for thelastChangedrecord componentscenarioNumber- the value for thescenarioNumberrecord componentattachedSegmentId- the value for theattachedSegmentIdrecord componentattachedVariableId- the value for theattachedVariableIdrecord componentuser- the value for theuserrecord componentsourceFile- the value for thesourceFilerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
period
Returns the value of theperiodrecord component.- Returns:
- the value of the
periodrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
lastChanged
Returns the value of thelastChangedrecord component.- Returns:
- the value of the
lastChangedrecord component
-
scenarioNumber
Returns the value of thescenarioNumberrecord component.- Returns:
- the value of the
scenarioNumberrecord component
-
attachedSegmentId
Returns the value of theattachedSegmentIdrecord component.- Returns:
- the value of the
attachedSegmentIdrecord component
-
attachedVariableId
Returns the value of theattachedVariableIdrecord component.- Returns:
- the value of the
attachedVariableIdrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
sourceFile
Returns the value of thesourceFilerecord component.- Returns:
- the value of the
sourceFilerecord component
-