Record Class MorphologicalAnalyzer.MorphologicalAnalysis
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.MorphologicalAnalyzer.MorphologicalAnalysis
- Enclosing class:
MorphologicalAnalyzer
-
Constructor Summary
ConstructorsConstructorDescriptionMorphologicalAnalysis(String originalWord, List<MorphologicalAnalyzer.Morpheme> morphemes, String rootWord, String partOfSpeech, Map<String, String> features) Creates an instance of aMorphologicalAnalysisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themorphemesrecord component.Returns the value of theoriginalWordrecord component.Returns the value of thepartOfSpeechrecord component.rootWord()Returns the value of therootWordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MorphologicalAnalysis
public MorphologicalAnalysis(String originalWord, List<MorphologicalAnalyzer.Morpheme> morphemes, String rootWord, String partOfSpeech, Map<String, String> features) Creates an instance of aMorphologicalAnalysisrecord class.- Parameters:
originalWord- the value for theoriginalWordrecord componentmorphemes- the value for themorphemesrecord componentrootWord- the value for therootWordrecord componentpartOfSpeech- the value for thepartOfSpeechrecord componentfeatures- the value for thefeaturesrecord 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). -
originalWord
Returns the value of theoriginalWordrecord component.- Returns:
- the value of the
originalWordrecord component
-
morphemes
Returns the value of themorphemesrecord component.- Returns:
- the value of the
morphemesrecord component
-
rootWord
Returns the value of therootWordrecord component.- Returns:
- the value of the
rootWordrecord component
-
partOfSpeech
Returns the value of thepartOfSpeechrecord component.- Returns:
- the value of the
partOfSpeechrecord component
-
features
-