Record Class ExtractionResult
java.lang.Object
java.lang.Record
io.github.dinethdilhara.urltoproduct.model.ExtractionResult
- Record Components:
confidenceScore- confidence score (0–100)status- extraction status of the result
Represents the result of a product extraction evaluation.
Contains a confidence score and the overall extraction status.
-
Constructor Summary
ConstructorsConstructorDescriptionExtractionResult(int confidenceScore, ExtractionStatus status) Creates an instance of aExtractionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconfidenceScorerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtractionResult
Creates an instance of aExtractionResultrecord class.- Parameters:
confidenceScore- the value for theconfidenceScorerecord componentstatus- the value for thestatusrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
confidenceScore
public int confidenceScore()Returns the value of theconfidenceScorerecord component.- Returns:
- the value of the
confidenceScorerecord component
-
status
-