Record Class AbstractDL.TextChunk
java.lang.Object
java.lang.Record
opennlp.dl.AbstractDL.TextChunk
- Record Components:
text- The chunk text, the chunk's whitespace tokens rejoined with single ASCII spaces.start- The inclusive character offset of the chunk in the source text.end- The exclusive character offset of the chunk in the source text.
- Enclosing class:
AbstractDL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intstart()Returns the value of thestartrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextChunk
-
-
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. -
text
-
start
-
end
-