Record Class NodePin<T>
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.node.NodePin<T>
public record NodePin<T>(NodePinType<T> type, String label, NodePinConnectionType connectionType, NodePinShape shape)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNodePin(NodePinType<T> type, String label, NodePinConnectionType connectionType, NodePinShape shape) Creates an instance of aNodePinrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withShape(NodePinShape shape)
-
Constructor Details
-
NodePin
public NodePin(NodePinType<T> type, String label, NodePinConnectionType connectionType, NodePinShape shape) Creates an instance of aNodePinrecord class.- Parameters:
type- the value for thetyperecord componentlabel- the value for thelabelrecord componentconnectionType- the value for theconnectionTyperecord componentshape- the value for theshaperecord component
-
-
Method Details
-
withShape
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
connectionType
Returns the value of theconnectionTyperecord component.- Returns:
- the value of the
connectionTyperecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-