Record Class ProfileGraph.GraphNode
java.lang.Object
java.lang.Record
ca.spottedleaf.profiler.ProfileGraph.GraphNode
- Enclosing class:
ProfileGraph
public static record ProfileGraph.GraphNode(ProfileGraph.GraphNode parent, int nodeId, int timerId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGraphNode(ProfileGraph.GraphNode parent, int nodeId, int timerId) Creates an instance of aGraphNoderecord 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.intnodeId()Returns the value of thenodeIdrecord component.parent()Returns the value of theparentrecord component.inttimerId()Returns the value of thetimerIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GraphNode
Creates an instance of aGraphNoderecord class.- Parameters:
parent- the value for theparentrecord componentnodeId- the value for thenodeIdrecord componenttimerId- the value for thetimerIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
nodeId
public int nodeId()Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
timerId
public int timerId()Returns the value of thetimerIdrecord component.- Returns:
- the value of the
timerIdrecord component
-