Record Class KeywordAbility
java.lang.Object
java.lang.Record
org.magic.api.ast.abilities.KeywordAbility
- All Implemented Interfaces:
AbilityNode
public record KeywordAbility(String keyword, String parameter)
extends Record
implements AbilityNode
-
Constructor Summary
ConstructorsConstructorDescriptionKeywordAbility(String keyword, String parameter) Creates an instance of aKeywordAbilityrecord 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.keyword()Returns the value of thekeywordrecord component.Returns the value of theparameterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeywordAbility
-
-
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). -
keyword
Returns the value of thekeywordrecord component.- Returns:
- the value of the
keywordrecord component
-
parameter
Returns the value of theparameterrecord component.- Returns:
- the value of the
parameterrecord component
-