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 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 a SensitivityData record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      description - the value for the description record component
      variable1Id - the value for the variable1Id record component
      variable2Id - the value for the variable2Id record component
      measurementVariableId - the value for the measurementVariableId record component
      variable1Period - the value for the variable1Period record component
      variable2Period - the value for the variable2Period record component
      measurementVariablePeriod - the value for the measurementVariablePeriod record component
      variable1Steps - the value for the variable1Steps record component
      variable2Steps - the value for the variable2Steps record component
      variable1StepSize - the value for the variable1StepSize record component
      variable2StepSize - the value for the variable2StepSize record component
      lastRun - the value for the lastRun record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      @NotEmpty public @NotEmpty String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      @NotEmpty public @NotEmpty String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • variable1Id

      @NotNull public @NotNull Long variable1Id()
      Returns the value of the variable1Id record component.
      Returns:
      the value of the variable1Id record component
    • variable2Id

      public Long variable2Id()
      Returns the value of the variable2Id record component.
      Returns:
      the value of the variable2Id record component
    • measurementVariableId

      @NotNull public @NotNull Long measurementVariableId()
      Returns the value of the measurementVariableId record component.
      Returns:
      the value of the measurementVariableId record component
    • variable1Period

      public Integer variable1Period()
      Returns the value of the variable1Period record component.
      Returns:
      the value of the variable1Period record component
    • variable2Period

      public Integer variable2Period()
      Returns the value of the variable2Period record component.
      Returns:
      the value of the variable2Period record component
    • measurementVariablePeriod

      @NotNull public @NotNull Integer measurementVariablePeriod()
      Returns the value of the measurementVariablePeriod record component.
      Returns:
      the value of the measurementVariablePeriod record component
    • variable1Steps

      @NotNull public @NotNull Integer variable1Steps()
      Returns the value of the variable1Steps record component.
      Returns:
      the value of the variable1Steps record component
    • variable2Steps

      public Integer variable2Steps()
      Returns the value of the variable2Steps record component.
      Returns:
      the value of the variable2Steps record component
    • variable1StepSize

      @NotNull public @NotNull Float variable1StepSize()
      Returns the value of the variable1StepSize record component.
      Returns:
      the value of the variable1StepSize record component
    • variable2StepSize

      public Float variable2StepSize()
      Returns the value of the variable2StepSize record component.
      Returns:
      the value of the variable2StepSize record component
    • lastRun

      public LocalDateTime lastRun()
      Returns the value of the lastRun record component.
      Returns:
      the value of the lastRun record component