Record Class HealingHistorySummary
java.lang.Object
java.lang.Record
com.shaft.heal.internal.HealingHistorySummary
- Record Components:
consecutiveHeals- count of consecutive successful heals for the most recent runacceptanceRate- percentage of accepted outcomesisPromotionCandidate- true if candidate meets promotion criteria
public record HealingHistorySummary(int consecutiveHeals, double acceptanceRate, boolean isPromotionCandidate)
extends Record
Summary of healing history statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionHealingHistorySummary(int consecutiveHeals, double acceptanceRate, boolean isPromotionCandidate) Creates an instance of aHealingHistorySummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theacceptanceRaterecord component.intReturns the value of theconsecutiveHealsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisPromotionCandidaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HealingHistorySummary
public HealingHistorySummary(int consecutiveHeals, double acceptanceRate, boolean isPromotionCandidate) Creates an instance of aHealingHistorySummaryrecord class.- Parameters:
consecutiveHeals- the value for theconsecutiveHealsrecord componentacceptanceRate- the value for theacceptanceRaterecord componentisPromotionCandidate- the value for theisPromotionCandidaterecord component
-
-
Method Details
-
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. -
consecutiveHeals
public int consecutiveHeals()Returns the value of theconsecutiveHealsrecord component.- Returns:
- the value of the
consecutiveHealsrecord component
-
acceptanceRate
public double acceptanceRate()Returns the value of theacceptanceRaterecord component.- Returns:
- the value of the
acceptanceRaterecord component
-
isPromotionCandidate
public boolean isPromotionCandidate()Returns the value of theisPromotionCandidaterecord component.- Returns:
- the value of the
isPromotionCandidaterecord component
-