java.lang.Object
ch.tocco.nice2.optional.qualification.api.util.beans.GradeData

public class GradeData extends Object
bean class to hold different types of data used in evaluation display
  • Constructor Details

    • GradeData

      public GradeData()
  • Method Details

    • withGrade

      public GradeData withGrade(@Nullable @Nullable BigDecimal grade)
    • withPoints

      public GradeData withPoints(@Nullable @Nullable BigDecimal points)
    • withPointsAverage

      public GradeData withPointsAverage(@Nullable @Nullable BigDecimal pointsAverage)
    • withPointsCorrection

      public GradeData withPointsCorrection(@Nullable @Nullable BigDecimal pointsCorrection)
    • withPercentage

      public GradeData withPercentage(@Nullable @Nullable BigDecimal percentage)
    • withText

      public GradeData withText(@Nullable @Nullable String text)
    • withDispensed

      public GradeData withDispensed()
    • withDispensed

      public GradeData withDispensed(boolean dispensed)
    • withDelegate

      public GradeData withDelegate(Entity delegate)
    • getGrade

      @Nullable public @Nullable BigDecimal getGrade()
    • getPoints

      @Nullable public @Nullable BigDecimal getPoints()
    • getPointsAverage

      @Nullable public @Nullable BigDecimal getPointsAverage()
    • getPointsCorrection

      @Nullable public @Nullable BigDecimal getPointsCorrection()
    • getPercentage

      @Nullable public @Nullable BigDecimal getPercentage()
    • getText

      @Nullable public @Nullable String getText()
    • isDispensed

      public boolean isDispensed()
    • getDelegate

      @Nullable public @Nullable Entity getDelegate()
    • getValue

      @Nullable public @Nullable Object getValue()
      Returns:
      the first filled value, in the order textgradepointspointsAverage, null if none are filled
    • getPointsValue

      @Nullable public @Nullable BigDecimal getPointsValue()
      Returns:
      the first filled value, in the order @link #points} → pointsAverage, null if none are filled
    • hasValues

      public boolean hasValues()
      Returns:
      do any values exist for this GradeData?