Record Class SensitivityData
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.SensitivityData
public record SensitivityData(Long id, @NotEmpty String name, @NotEmpty String description, @NotNull Long variable1Id, Long variable2Id, @NotNull Long measurementVariableId, Integer variable1Period, Integer variable2Period, @NotNull Integer measurementVariablePeriod, @NotNull Integer variable1Steps, Integer variable2Steps, @NotNull Float variable1StepSize, Float variable2StepSize, LocalDateTime lastRun)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSensitivityData(Long id, @NotEmpty String name, @NotEmpty String description, @NotNull Long variable1Id, Long variable2Id, @NotNull Long measurementVariableId, Integer variable1Period, Integer variable2Period, @NotNull Integer measurementVariablePeriod, @NotNull Integer variable1Steps, Integer variable2Steps, @NotNull Float variable1StepSize, Float variable2StepSize, LocalDateTime lastRun) Creates an instance of aSensitivityDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NotEmpty StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.lastRun()Returns the value of thelastRunrecord component.@NotNull LongReturns the value of themeasurementVariableIdrecord component.@NotNull IntegerReturns the value of themeasurementVariablePeriodrecord component.@NotEmpty Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull LongReturns the value of thevariable1Idrecord component.Returns the value of thevariable1Periodrecord component.@NotNull IntegerReturns the value of thevariable1Stepsrecord component.@NotNull FloatReturns the value of thevariable1StepSizerecord component.Returns the value of thevariable2Idrecord component.Returns the value of thevariable2Periodrecord component.Returns the value of thevariable2Stepsrecord component.Returns the value of thevariable2StepSizerecord component.
-
Constructor Details
-
SensitivityData
public SensitivityData(Long id, @NotEmpty @NotEmpty String name, @NotEmpty @NotEmpty String description, @NotNull @NotNull Long variable1Id, Long variable2Id, @NotNull @NotNull Long measurementVariableId, Integer variable1Period, Integer variable2Period, @NotNull @NotNull Integer measurementVariablePeriod, @NotNull @NotNull Integer variable1Steps, Integer variable2Steps, @NotNull @NotNull Float variable1StepSize, Float variable2StepSize, LocalDateTime lastRun) Creates an instance of aSensitivityDatarecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentvariable1Id- the value for thevariable1Idrecord componentvariable2Id- the value for thevariable2Idrecord componentmeasurementVariableId- the value for themeasurementVariableIdrecord componentvariable1Period- the value for thevariable1Periodrecord componentvariable2Period- the value for thevariable2Periodrecord componentmeasurementVariablePeriod- the value for themeasurementVariablePeriodrecord componentvariable1Steps- the value for thevariable1Stepsrecord componentvariable2Steps- the value for thevariable2Stepsrecord componentvariable1StepSize- the value for thevariable1StepSizerecord componentvariable2StepSize- the value for thevariable2StepSizerecord componentlastRun- the value for thelastRunrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
variable1Id
Returns the value of thevariable1Idrecord component.- Returns:
- the value of the
variable1Idrecord component
-
variable2Id
Returns the value of thevariable2Idrecord component.- Returns:
- the value of the
variable2Idrecord component
-
measurementVariableId
Returns the value of themeasurementVariableIdrecord component.- Returns:
- the value of the
measurementVariableIdrecord component
-
variable1Period
Returns the value of thevariable1Periodrecord component.- Returns:
- the value of the
variable1Periodrecord component
-
variable2Period
Returns the value of thevariable2Periodrecord component.- Returns:
- the value of the
variable2Periodrecord component
-
measurementVariablePeriod
Returns the value of themeasurementVariablePeriodrecord component.- Returns:
- the value of the
measurementVariablePeriodrecord component
-
variable1Steps
Returns the value of thevariable1Stepsrecord component.- Returns:
- the value of the
variable1Stepsrecord component
-
variable2Steps
Returns the value of thevariable2Stepsrecord component.- Returns:
- the value of the
variable2Stepsrecord component
-
variable1StepSize
Returns the value of thevariable1StepSizerecord component.- Returns:
- the value of the
variable1StepSizerecord component
-
variable2StepSize
Returns the value of thevariable2StepSizerecord component.- Returns:
- the value of the
variable2StepSizerecord component
-
lastRun
Returns the value of thelastRunrecord component.- Returns:
- the value of the
lastRunrecord component
-