Record Class MachineEvents.Action
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.machine.MachineEvents.Action
- Record Components:
action- the action's id in the machine's type
- Enclosing class:
MachineEvents
public static record MachineEvents.Action(@NotNull MachineInstance machine, @NotNull String action, MachineAction.Click click, MachineAction.Outcome outcome)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAction(@NotNull MachineInstance machine, @NotNull String action, MachineAction.Click click, MachineAction.Outcome outcome) Creates an instance of aActionrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringaction()Returns the value of theactionrecord component.click()Returns the value of theclickrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull MachineInstancemachine()Returns the value of themachinerecord component.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Action
public Action(@NotNull @NotNull MachineInstance machine, @NotNull @NotNull String action, @NotNull MachineAction.Click click, @NotNull MachineAction.Outcome outcome) Creates an instance of aActionrecord class.- Parameters:
machine- the value for themachinerecord componentaction- the value for theactionrecord componentclick- the value for theclickrecord componentoutcome- the value for theoutcomerecord 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 withObjects::equals(Object,Object). -
machine
Returns the value of themachinerecord component.- Returns:
- the value of the
machinerecord component
-
action
-
click
Returns the value of theclickrecord component.- Returns:
- the value of the
clickrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-