Package kboyle.oktane.core.mapping
Record Class CommandMatch
java.lang.Object
java.lang.Record
kboyle.oktane.core.mapping.CommandMatch
-
Constructor Summary
ConstructorsConstructorDescriptionCommandMatch(Command command, int commandEnd, int argumentStart)Creates an instance of aCommandMatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theargumentStartrecord component.command()Returns the value of thecommandrecord component.intReturns the value of thecommandEndrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
CommandMatch
Creates an instance of aCommandMatchrecord class.- Parameters:
command- the value for thecommandrecord componentcommandEnd- the value for thecommandEndrecord componentargumentStart- the value for theargumentStartrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
commandEnd
public int commandEnd()Returns the value of thecommandEndrecord component.- Returns:
- the value of the
commandEndrecord component
-
argumentStart
public int argumentStart()Returns the value of theargumentStartrecord component.- Returns:
- the value of the
argumentStartrecord component
-