Record Class LocatorRanker.LocatorSelection
java.lang.Object
java.lang.Record
com.shaft.capture.generate.LocatorRanker.LocatorSelection
- Record Components:
selected- selected candidatealternatives- ranked fallback candidates
- Enclosing class:
LocatorRanker
public static record LocatorRanker.LocatorSelection(LocatorRanker.ScoredLocator selected, List<LocatorRanker.ScoredLocator> alternatives)
extends Record
Ranked selection and fallback candidates.
-
Constructor Summary
ConstructorsConstructorDescriptionLocatorSelection(LocatorRanker.ScoredLocator selected, List<LocatorRanker.ScoredLocator> alternatives) Creates an immutable selection. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealternativesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.selected()Returns the value of theselectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocatorSelection
public LocatorSelection(LocatorRanker.ScoredLocator selected, List<LocatorRanker.ScoredLocator> alternatives) Creates an immutable selection.
-
-
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 withObjects::equals(Object,Object). -
selected
-
alternatives
Returns the value of thealternativesrecord component.- Returns:
- the value of the
alternativesrecord component
-