Record Class VariableValueData

java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.VariableValueData

public record VariableValueData(long id, Integer period, @NotNull Float value, LocalDateTime lastChanged, Integer scenarioNumber, Long attachedSegmentId, @NotNull Long attachedVariableId, String user, String sourceFile) extends Record
  • 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 a VariableValueData record class.
      Parameters:
      id - the value for the id record component
      period - the value for the period record component
      value - the value for the value record component
      lastChanged - the value for the lastChanged record component
      scenarioNumber - the value for the scenarioNumber record component
      attachedSegmentId - the value for the attachedSegmentId record component
      attachedVariableId - the value for the attachedVariableId record component
      user - the value for the user record component
      sourceFile - the value for the sourceFile 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • period

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

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

      public LocalDateTime lastChanged()
      Returns the value of the lastChanged record component.
      Returns:
      the value of the lastChanged record component
    • scenarioNumber

      public Integer scenarioNumber()
      Returns the value of the scenarioNumber record component.
      Returns:
      the value of the scenarioNumber record component
    • attachedSegmentId

      public Long attachedSegmentId()
      Returns the value of the attachedSegmentId record component.
      Returns:
      the value of the attachedSegmentId record component
    • attachedVariableId

      @NotNull public @NotNull Long attachedVariableId()
      Returns the value of the attachedVariableId record component.
      Returns:
      the value of the attachedVariableId record component
    • user

      public String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • sourceFile

      public String sourceFile()
      Returns the value of the sourceFile record component.
      Returns:
      the value of the sourceFile record component