Record Class PowerToughnessModifier
java.lang.Object
java.lang.Record
org.magic.api.ast.modifiers.PowerToughnessModifier
- All Implemented Interfaces:
ModifierNode
public record PowerToughnessModifier(int powerDelta, int toughnessDelta)
extends Record
implements ModifierNode
-
Constructor Summary
ConstructorsConstructorDescriptionPowerToughnessModifier(int powerDelta, int toughnessDelta) Creates an instance of aPowerToughnessModifierrecord class. -
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.intReturns the value of thepowerDeltarecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetoughnessDeltarecord component.
-
Constructor Details
-
PowerToughnessModifier
public PowerToughnessModifier(int powerDelta, int toughnessDelta) Creates an instance of aPowerToughnessModifierrecord class.- Parameters:
powerDelta- the value for thepowerDeltarecord componenttoughnessDelta- the value for thetoughnessDeltarecord 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. -
powerDelta
public int powerDelta()Returns the value of thepowerDeltarecord component.- Returns:
- the value of the
powerDeltarecord component
-
toughnessDelta
public int toughnessDelta()Returns the value of thetoughnessDeltarecord component.- Returns:
- the value of the
toughnessDeltarecord component
-