Record Class HpCandidateScore
java.lang.Object
java.lang.Record
org.j7m.middleware.ha.HpCandidateScore
- Record Components:
ref- candidate referencescore- total score where lower is betterexplanation- public score components
-
Constructor Summary
ConstructorsConstructorDescriptionHpCandidateScore(org.j7m.middleware.api.ObjectRef ref, double score, Map<String, String> explanation) Creates an immutable score. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplanationrecord component.final inthashCode()Returns a hash code value for this object.org.j7m.middleware.api.ObjectRefref()Returns the value of therefrecord component.doublescore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HpCandidateScore
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
ref
-
score
-
explanation
Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-