Package opennlp.tools.formats.ad
Record Class ADSentenceStream.Sentence
java.lang.Object
java.lang.Record
opennlp.tools.formats.ad.ADSentenceStream.Sentence
- Enclosing class:
- ADSentenceStream
public static record ADSentenceStream.Sentence(String text, ADSentenceStream.SentenceParser.Node root, String metadata)
extends Record
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSentence(String text, ADSentenceStream.SentenceParser.Node root, String metadata) Creates an instance of aSentencerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.root()Returns the value of therootrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
META_LABEL_FINAL- See Also:
 
 
- 
- 
Constructor Details- 
SentenceCreates an instance of aSentencerecord class.- Parameters:
- text- the value for the- textrecord component
- root- the value for the- rootrecord component
- metadata- the value for the- metadatarecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
textReturns the value of thetextrecord component.- Returns:
- the value of the textrecord component
 
- 
rootReturns the value of therootrecord component.- Returns:
- the value of the rootrecord component
 
- 
metadataReturns the value of themetadatarecord component.- Returns:
- the value of the metadatarecord component
 
 
-