Record Class EtymologyGraph.Derivation
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.EtymologyGraph.Derivation
- All Implemented Interfaces:
Serializable
- Enclosing class:
EtymologyGraph
public static record EtymologyGraph.Derivation(EtymologyGraph.EtymologyNode source, EtymologyGraph.EtymologyNode target, String type)
extends Record
implements Serializable
- Since:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDerivation(EtymologyGraph.EtymologyNode source, EtymologyGraph.EtymologyNode target, String type) Creates an instance of aDerivationrecord 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.source()Returns the value of thesourcerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Derivation
public Derivation(EtymologyGraph.EtymologyNode source, EtymologyGraph.EtymologyNode target, String type) Creates an instance of aDerivationrecord class.- Parameters:
source- the value for thesourcerecord componenttarget- the value for thetargetrecord componenttype- the value for thetyperecord 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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-