Record Class DrawCardsEffect
java.lang.Object
java.lang.Record
org.magic.api.ast.effects.DrawCardsEffect
- All Implemented Interfaces:
EffectNode
-
Constructor Summary
ConstructorsConstructorDescriptionDrawCardsEffect(int amount) Creates an instance of aDrawCardsEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintamount()Returns the value of theamountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DrawCardsEffect
public DrawCardsEffect(int amount) Creates an instance of aDrawCardsEffectrecord class.- Parameters:
amount- the value for theamountrecord 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 with thecomparemethod from their corresponding wrapper classes. -
amount
public int amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-