Package opennlp.dl.doccat
Record Class DocumentCategorizerConfig
java.lang.Object
java.lang.Record
opennlp.dl.doccat.DocumentCategorizerConfig
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentCategorizerConfig(Map<String, String> id2label) Creates an instance of aDocumentCategorizerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static DocumentCategorizerConfigfinal inthashCode()Returns a hash code value for this object.id2label()Returns the value of theid2labelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentCategorizerConfig
Creates an instance of aDocumentCategorizerConfigrecord class.- Parameters:
id2label- the value for theid2labelrecord component
-
-
Method Details
-
id2label
Returns the value of theid2labelrecord component.- Returns:
- the value of the
id2labelrecord component
-
fromJson
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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).
-