Record Class ThresholdValueEditorResource.FormData

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

public static record ThresholdValueEditorResource.FormData(String input, @Nullable String events, @Nullable BigDecimal minGrade, @Nullable BigDecimal maxGrade, @Nullable BigDecimal rounding, List<ThresholdValueEditorResource.ThresholdValue> thresholdValues, List<ThresholdValueEditorResource.ThresholdValueTemplate> templates, boolean gradesReversed) extends Record
  • Constructor Details

    • FormData

      public FormData(String input, @Nullable String events, @Nullable BigDecimal minGrade, @Nullable BigDecimal maxGrade, @Nullable BigDecimal rounding, List<ThresholdValueEditorResource.ThresholdValue> thresholdValues, List<ThresholdValueEditorResource.ThresholdValueTemplate> templates, boolean gradesReversed)
      Creates an instance of a FormData record class.
      Parameters:
      input - the value for the input record component
      events - the value for the events record component
      minGrade - the value for the minGrade record component
      maxGrade - the value for the maxGrade record component
      rounding - the value for the rounding record component
      thresholdValues - the value for the thresholdValues record component
      templates - the value for the templates record component
      gradesReversed - the value for the gradesReversed 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 the compare method from their corresponding wrapper classes.
      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.
    • input

      public String input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component
    • events

      public @Nullable String events()
      Returns the value of the events record component.
      Returns:
      the value of the events record component
    • minGrade

      public @Nullable BigDecimal minGrade()
      Returns the value of the minGrade record component.
      Returns:
      the value of the minGrade record component
    • maxGrade

      public @Nullable BigDecimal maxGrade()
      Returns the value of the maxGrade record component.
      Returns:
      the value of the maxGrade record component
    • rounding

      public @Nullable BigDecimal rounding()
      Returns the value of the rounding record component.
      Returns:
      the value of the rounding record component
    • thresholdValues

      Returns the value of the thresholdValues record component.
      Returns:
      the value of the thresholdValues record component
    • templates

      Returns the value of the templates record component.
      Returns:
      the value of the templates record component
    • gradesReversed

      public boolean gradesReversed()
      Returns the value of the gradesReversed record component.
      Returns:
      the value of the gradesReversed record component