Record Class ReturnEffect
java.lang.Object
java.lang.Record
org.magic.api.ast.effects.ReturnEffect
- All Implemented Interfaces:
EffectNode
public record ReturnEffect(TargetSelectorNode target, String destination)
extends Record
implements EffectNode
-
Constructor Summary
ConstructorsConstructorDescriptionReturnEffect(TargetSelectorNode target, String destination) Creates an instance of aReturnEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReturnEffect
Creates an instance of aReturnEffectrecord class.- Parameters:
target- the value for thetargetrecord componentdestination- the value for thedestinationrecord 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). -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-