Record Class ClassificationResponse
java.lang.Object
java.lang.Record
com.xpdustry.nohorny.common.ClassificationResponse
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationResponse(String classifier, Rating rating, String identifier) Creates an instance of aClassificationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassifierrecord 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
Creates an instance of aClassificationResponserecord class.- Parameters:
classifier- the value for theclassifierrecord componentrating- the value for theratingrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-