Record Class LocatorRanker.ScoredLocator
java.lang.Object
java.lang.Record
com.shaft.capture.generate.LocatorRanker.ScoredLocator
- Record Components:
candidate- captured candidatescore- deterministic scorebreakdown- ordered score explanation
- Enclosing class:
LocatorRanker
public static record LocatorRanker.ScoredLocator(LocatorCandidate candidate, int score, List<String> breakdown)
extends Record
One scored candidate.
-
Constructor Summary
ConstructorsConstructorDescriptionScoredLocator(LocatorCandidate candidate, int score, List<String> breakdown) Creates an immutable score. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebreakdownrecord component.Returns the value of thecandidaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intscore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoredLocator
Creates an immutable score.
-
-
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. -
candidate
-
score
-
breakdown
-