Record Class ThresholdValueEditorResource.ThresholdValue

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.qualification.impl.resources.ThresholdValueEditorResource.ThresholdValue
Enclosing class:
ThresholdValueEditorResource

public static record ThresholdValueEditorResource.ThresholdValue(String pk, BigDecimal points, BigDecimal grade, @Nullable Integer numGrades) extends Record
  • Constructor Details

    • ThresholdValue

      public ThresholdValue(String pk, BigDecimal points, BigDecimal grade, @Nullable Integer numGrades)
      Creates an instance of a ThresholdValue record class.
      Parameters:
      pk - the value for the pk record component
      points - the value for the points record component
      grade - the value for the grade record component
      numGrades - the value for the numGrades 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.
    • pk

      public String pk()
      Returns the value of the pk record component.
      Returns:
      the value of the pk record component
    • points

      public BigDecimal points()
      Returns the value of the points record component.
      Returns:
      the value of the points record component
    • grade

      public BigDecimal grade()
      Returns the value of the grade record component.
      Returns:
      the value of the grade record component
    • numGrades

      public @Nullable Integer numGrades()
      Returns the value of the numGrades record component.
      Returns:
      the value of the numGrades record component