Record Class ScoringService.ScoreResult
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.service.ScoringService.ScoreResult
- Enclosing class:
ScoringService
public static record ScoringService.ScoreResult(int score100, int streakDays, int completionRatePercent, int activeSeconds7d)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionScoreResult(int score100, int streakDays, int completionRatePercent, int activeSeconds7d) Creates an instance of aScoreResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveSeconds7drecord component.intReturns the value of thecompletionRatePercentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intscore100()Returns the value of thescore100record component.intReturns the value of thestreakDaysrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoreResult
public ScoreResult(int score100, int streakDays, int completionRatePercent, int activeSeconds7d) Creates an instance of aScoreResultrecord class.- Parameters:
score100- the value for thescore100record componentstreakDays- the value for thestreakDaysrecord componentcompletionRatePercent- the value for thecompletionRatePercentrecord componentactiveSeconds7d- the value for theactiveSeconds7drecord component
-
-
Method Details
-
activeTime7dText
-
levelText
-
toString
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
score100
public int score100()Returns the value of thescore100record component.- Returns:
- the value of the
score100record component
-
streakDays
public int streakDays()Returns the value of thestreakDaysrecord component.- Returns:
- the value of the
streakDaysrecord component
-
completionRatePercent
public int completionRatePercent()Returns the value of thecompletionRatePercentrecord component.- Returns:
- the value of the
completionRatePercentrecord component
-
activeSeconds7d
public int activeSeconds7d()Returns the value of theactiveSeconds7drecord component.- Returns:
- the value of the
activeSeconds7drecord component
-