Package opennlp.tools.tokenize.lattice
Record Class UnigramSegmenter.WordTrieBuilder.BuildStep
java.lang.Object
java.lang.Record
opennlp.tools.tokenize.lattice.UnigramSegmenter.WordTrieBuilder.BuildStep
- Record Components:
node- The mutable node.childrenBuilt- Whether the node's children have been copied.
- Enclosing class:
UnigramSegmenter.WordTrieBuilder
private static record UnigramSegmenter.WordTrieBuilder.BuildStep(UnigramSegmenter.WordTrieBuilder node, boolean childrenBuilt)
extends Record
One pending post-order traversal step.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thechildrenBuiltrecord component.private final UnigramSegmenter.WordTrieBuilderThe field for thenoderecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBuildStep(UnigramSegmenter.WordTrieBuilder node, boolean childrenBuilt) Creates an instance of aBuildSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thechildrenBuiltrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.node()Returns the value of thenoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
node
The field for thenoderecord component. -
childrenBuilt
private final boolean childrenBuiltThe field for thechildrenBuiltrecord component.
-
-
Constructor Details
-
BuildStep
Creates an instance of aBuildSteprecord class.- Parameters:
node- the value for thenoderecord componentchildrenBuilt- the value for thechildrenBuiltrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
childrenBuilt
public boolean childrenBuilt()Returns the value of thechildrenBuiltrecord component.- Returns:
- the value of the
childrenBuiltrecord component
-