Class GradeData
java.lang.Object
ch.tocco.nice2.optional.qualification.api.util.beans.GradeData
bean class to hold different types of data used in evaluation display
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Entity@Nullable BigDecimalgetGrade()@Nullable BigDecimal@Nullable BigDecimal@Nullable BigDecimal@Nullable BigDecimal@Nullable BigDecimal@Nullable StringgetText()@Nullable ObjectgetValue()booleanbooleanwithDelegate(Entity delegate) withDispensed(boolean dispensed) withGrade(@Nullable BigDecimal grade) withPercentage(@Nullable BigDecimal percentage) withPoints(@Nullable BigDecimal points) withPointsAverage(@Nullable BigDecimal pointsAverage) withPointsCorrection(@Nullable BigDecimal pointsCorrection)
-
Constructor Details
-
GradeData
public GradeData()
-
-
Method Details
-
withGrade
-
withPoints
-
withPointsAverage
-
withPointsCorrection
-
withPercentage
-
withText
-
withDispensed
-
withDispensed
-
withDelegate
-
getGrade
-
getPoints
-
getPointsAverage
-
getPointsCorrection
-
getPercentage
-
getText
-
isDispensed
public boolean isDispensed() -
getDelegate
-
getValue
- Returns:
- the first filled value, in the order
text→grade→points→pointsAverage, null if none are filled
-
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?
-