Record Class KoMorphData.Morpheme
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.ko.dict.KoMorphData.Morpheme
- Enclosing interface:
KoMorphData
A morpheme extracted from a compound token.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.posTag()
Returns the value of theposTag
record component.Returns the value of thesurfaceForm
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
posTag
The field for theposTag
record component. -
surfaceForm
The field for thesurfaceForm
record component.
-
-
Constructor Details
-
Morpheme
Creates an instance of aMorpheme
record class.- Parameters:
posTag
- the value for theposTag
record componentsurfaceForm
- the value for thesurfaceForm
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
posTag
Returns the value of theposTag
record component.- Returns:
- the value of the
posTag
record component
-
surfaceForm
Returns the value of thesurfaceForm
record component.- Returns:
- the value of the
surfaceForm
record component
-