Record Class AbstractDL.ChunkRange
java.lang.Object
java.lang.Record
opennlp.dl.AbstractDL.ChunkRange
- Record Components:
start- The inclusive index of the first token of the chunk.end- The exclusive index after the last token of the chunk.
- Enclosing class:
AbstractDL
@Internal(since="3.0.0")
protected static record AbstractDL.ChunkRange(int start, int end)
extends Record
A half-open range of token indices covered by one chunk.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChunkRange(int start, int end) Creates an instance of aChunkRangerecord class. -
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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChunkRange
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
start
-
end
-