Record Class DebugPathInfo.Data
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.info.DebugPathInfo.Data
- Enclosing class:
DebugPathInfo
public static record DebugPathInfo.Data(Set<DebugPathInfo.Node> targetNodes, List<DebugPathInfo.Node> openSet, List<DebugPathInfo.Node> closedSet)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionData(Set<DebugPathInfo.Node> targetNodes, List<DebugPathInfo.Node> openSet, List<DebugPathInfo.Node> closedSet) Creates an instance of aDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclosedSetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.openSet()Returns the value of theopenSetrecord component.Returns the value of thetargetNodesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
Data
public Data(Set<DebugPathInfo.Node> targetNodes, List<DebugPathInfo.Node> openSet, List<DebugPathInfo.Node> closedSet) Creates an instance of aDatarecord class.- Parameters:
targetNodes- the value for thetargetNodesrecord componentopenSet- the value for theopenSetrecord componentclosedSet- the value for theclosedSetrecord 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). -
targetNodes
Returns the value of thetargetNodesrecord component.- Returns:
- the value of the
targetNodesrecord component
-
openSet
Returns the value of theopenSetrecord component.- Returns:
- the value of the
openSetrecord component
-
closedSet
Returns the value of theclosedSetrecord component.- Returns:
- the value of the
closedSetrecord component
-