java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Debot.DebotAction
- Record Components:
description- Should be used by Debot Browser as name of menu item. A short action description.name- Can be a debot function name or a print string (for Print Action). Depends on action type.actionType- Action type.to- ID of debot context to switch after action execution.attributes- In the form of "param=value,flag". attribute example: instant, args, fargs, sign. Action attributes.misc- Used by debot only. Some internal action data.
- Enclosing class:
Debot
public static record Debot.DebotAction(String description, String name, Integer actionType, Integer to, String attributes, String misc)
extends Record
[UNSTABLE](UNSTABLE.md) [DEPRECATED](DEPRECATED.md) Describes a debot action in a Debot Context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionTyperecord component.Returns the value of theattributesrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.misc()Returns the value of themiscrecord component.name()Returns the value of thenamerecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DebotAction
public DebotAction(String description, String name, Integer actionType, Integer to, String attributes, String misc) Creates an instance of aDebotActionrecord class.- Parameters:
description- the value for thedescriptionrecord componentname- the value for thenamerecord componentactionType- the value for theactionTyperecord componentto- the value for thetorecord componentattributes- the value for theattributesrecord componentmisc- the value for themiscrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
actionType
Returns the value of theactionTyperecord component.- Returns:
- the value of the
actionTyperecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
misc
Returns the value of themiscrecord component.- Returns:
- the value of the
miscrecord component
-