Record Class PropertyTypeGraph.Node
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.PropertyTypeGraph.Node
- Enclosing class:
PropertyTypeGraph
One node, keyed by kind and fully qualified type name (value equality, as the shared Tarjan requires).
-
Constructor Summary
ConstructorsConstructorDescriptionNode(PropertyTypeGraph.Kind kind, String typeName) Creates an instance of aNoderecord 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.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
Node
Node(PropertyTypeGraph.Kind kind, String typeName) Creates an instance of aNoderecord class.- Parameters:
kind- the value for thekindrecord componenttypeName- the value for thetypeNamerecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-