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
ConstructorsConstructorDescriptionAction(StateIdType nextStateId, boolean captureInput, EmitTokenType emitToken) Creates an instance of aActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecaptureInputrecord component.Returns the value of theemitTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenextStateIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Action
Creates an instance of aActionrecord class.- Parameters:
nextStateId- the value for thenextStateIdrecord componentcaptureInput- the value for thecaptureInputrecord componentemitToken- the value for theemitTokenrecord 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 thecomparemethod from their corresponding wrapper classes. -
nextStateId
Returns the value of thenextStateIdrecord component.- Returns:
- the value of the
nextStateIdrecord component
-
captureInput
public boolean captureInput()Returns the value of thecaptureInputrecord component.- Returns:
- the value of the
captureInputrecord component
-
emitToken
Returns the value of theemitTokenrecord component.- Returns:
- the value of the
emitTokenrecord component
-