Record Class TokenNameFinderCrossValidator.DocumentSample
java.lang.Object
java.lang.Record
opennlp.tools.namefind.TokenNameFinderCrossValidator.DocumentSample
- All Implemented Interfaces:
Serializable, Sample
- Enclosing class:
TokenNameFinderCrossValidator
private static record TokenNameFinderCrossValidator.DocumentSample(NameSample[] samples)
extends Record
implements Sample
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NameSample[]The field for thesamplesrecord component.private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDocumentSample(NameSample[] samples) Creates an instance of aDocumentSamplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.samples()Returns the value of thesamplesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
samples
The field for thesamplesrecord component. -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
DocumentSample
Creates an instance of aDocumentSamplerecord class.- Parameters:
samples- the value for thesamplesrecord 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). -
samples
Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-