Package codes.grow.packages.skywalking
Record Class TopologyNode
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.TopologyNode
- Record Components:
id- service idname- service nametype- node type (component), may be emptyisReal- false for virtual nodeslayers- layers of the service
public record TopologyNode(String id, String name, String type, boolean isReal, List<String> layers)
extends Record
A service in the topology. The virtual
User node has isReal false.-
Constructor Summary
Constructors -
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.id()Returns the value of theidrecord component.booleanisReal()Returns the value of theisRealrecord component.layers()Returns the value of thelayersrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TopologyNode
Copies the layers.- Parameters:
id- idname- nametype- typeisReal- real flaglayers- layers
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
isReal
public boolean isReal()Returns the value of theisRealrecord component.- Returns:
- the value of the
isRealrecord component
-
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-