Record Class MacroLine
java.lang.Object
java.lang.Record
com.j3d.engine.interact.macros.MacroLine
- Record Components:
instructionType- The instruction typeinstruction- The instruction
A single line of a
Macro with an InstructionType and the string representing the instruction.- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theinstructionrecord component.private final InstructionTypeThe field for theinstructionTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMacroLine(InstructionType instructionType, String instruction) Creates an instance of aMacroLinerecord 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.Returns the value of theinstructionrecord component.Returns the value of theinstructionTyperecord component.static MacroLinetoString()Returns a string representation of this record class.
-
Field Details
-
instructionType
The field for theinstructionTyperecord component. -
instruction
The field for theinstructionrecord component.
-
-
Constructor Details
-
MacroLine
Creates an instance of aMacroLinerecord class.- Parameters:
instructionType- the value for theinstructionTyperecord componentinstruction- the value for theinstructionrecord component
-
-
Method Details
-
toString
-
read
-
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). -
instructionType
Returns the value of theinstructionTyperecord component.- Returns:
- the value of the
instructionTyperecord component
-
instruction
Returns the value of theinstructionrecord component.- Returns:
- the value of the
instructionrecord component
-