Record Class EtymologyGraph.EtymologyNode
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.EtymologyGraph.EtymologyNode
- All Implemented Interfaces:
Serializable
- Enclosing class:
EtymologyGraph
public static record EtymologyGraph.EtymologyNode(String word, Language language, String meaning)
extends Record
implements Serializable
- Since:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEtymologyNode(String word, Language language, String meaning) Creates an instance of aEtymologyNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.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.word()Returns the value of thewordrecord component.
-
Constructor Details
-
EtymologyNode
-
-
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). -
word
Returns the value of thewordrecord component.- Returns:
- the value of the
wordrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
meaning
Returns the value of themeaningrecord component.- Returns:
- the value of the
meaningrecord component
-