Record Class SystemParameterDto

java.lang.Object
java.lang.Record
com.suncode.pwfl.administration.configuration.SystemParameterDto

public record SystemParameterDto(ParameterType parameterType, String valueString, Long valueLong, List<String> comboValues, Boolean valueBool, Date valueDate, Double valueDouble) extends Record
  • Constructor Details

    • SystemParameterDto

      public SystemParameterDto(SystemParameter systemParameter)
    • SystemParameterDto

      public SystemParameterDto(ParameterType parameterType, String valueString, Long valueLong, List<String> comboValues, Boolean valueBool, Date valueDate, Double valueDouble)
      Creates an instance of a SystemParameterDto record class.
      Parameters:
      parameterType - the value for the parameterType record component
      valueString - the value for the valueString record component
      valueLong - the value for the valueLong record component
      comboValues - the value for the comboValues record component
      valueBool - the value for the valueBool record component
      valueDate - the value for the valueDate record component
      valueDouble - the value for the valueDouble record component
  • Method Details

    • getDescryptedValueString

      public String getDescryptedValueString()
    • 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.
    • parameterType

      public ParameterType parameterType()
      Returns the value of the parameterType record component.
      Returns:
      the value of the parameterType record component
    • valueString

      public String valueString()
      Returns the value of the valueString record component.
      Returns:
      the value of the valueString record component
    • valueLong

      public Long valueLong()
      Returns the value of the valueLong record component.
      Returns:
      the value of the valueLong record component
    • comboValues

      public List<String> comboValues()
      Returns the value of the comboValues record component.
      Returns:
      the value of the comboValues record component
    • valueBool

      public Boolean valueBool()
      Returns the value of the valueBool record component.
      Returns:
      the value of the valueBool record component
    • valueDate

      public Date valueDate()
      Returns the value of the valueDate record component.
      Returns:
      the value of the valueDate record component
    • valueDouble

      public Double valueDouble()
      Returns the value of the valueDouble record component.
      Returns:
      the value of the valueDouble record component