Record Class ClassificationResponse
java.lang.Object
java.lang.Record
com.xpdustry.nohorny.common.ClassificationResponse
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationResponse(String classifier, Rating rating, double confidence, String identifier) Creates an instance of aClassificationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassifierrecord component.doubleReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.rating()Returns the value of theratingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassificationResponse
public ClassificationResponse(String classifier, Rating rating, double confidence, String identifier) Creates an instance of aClassificationResponserecord class.- Parameters:
classifier- the value for theclassifierrecord componentrating- the value for theratingrecord componentconfidence- the value for theconfidencerecord componentidentifier- the value for theidentifierrecord 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. -
classifier
Returns the value of theclassifierrecord component.- Returns:
- the value of the
classifierrecord component
-
rating
Returns the value of theratingrecord component.- Returns:
- the value of the
ratingrecord component
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-