Record Class MorphologicalAnalyzer.Morpheme
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.MorphologicalAnalyzer.Morpheme
- Enclosing class:
MorphologicalAnalyzer
public static record MorphologicalAnalyzer.Morpheme(String form, MorphologicalAnalyzer.MorphemeType type, String meaning, String language)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMorpheme(String form, MorphologicalAnalyzer.MorphemeType type, String meaning, String language) Creates an instance of aMorphemerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.form()Returns the value of theformrecord component.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.meaning()Returns the value of themeaningrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Morpheme
public Morpheme(String form, MorphologicalAnalyzer.MorphemeType type, String meaning, String language) Creates an instance of aMorphemerecord class.- Parameters:
form- the value for theformrecord componenttype- the value for thetyperecord componentmeaning- the value for themeaningrecord componentlanguage- the value for thelanguagerecord component
-
-
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 withObjects::equals(Object,Object). -
form
Returns the value of theformrecord component.- Returns:
- the value of the
formrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
meaning
Returns the value of themeaningrecord component.- Returns:
- the value of the
meaningrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-