Record Class Action<StateIdType,EmitTokenType>
java.lang.Object
java.lang.Record
us.irdev.bedrock.bag.scanner.Action<StateIdType,EmitTokenType>
public record Action<StateIdType,EmitTokenType> (StateIdType nextStateId, boolean captureInput, EmitTokenType emitToken)
extends Record
-
Constructor Summary
ConstructorDescriptionAction
(StateIdType nextStateId, boolean captureInput, EmitTokenType emitToken) Creates an instance of aAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecaptureInput
record component.Returns the value of theemitToken
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenextStateId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Action
Creates an instance of aAction
record class.- Parameters:
nextStateId
- the value for thenextStateId
record componentcaptureInput
- the value for thecaptureInput
record componentemitToken
- the value for theemitToken
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
nextStateId
Returns the value of thenextStateId
record component.- Returns:
- the value of the
nextStateId
record component
-
captureInput
public boolean captureInput()Returns the value of thecaptureInput
record component.- Returns:
- the value of the
captureInput
record component
-
emitToken
Returns the value of theemitToken
record component.- Returns:
- the value of the
emitToken
record component
-