Record Class CommandAction
java.lang.Object
java.lang.Record
dev.despical.pixelpainter.command.CommandAction
- Record Components:
name- canonical action and help-message suffixpermission- permission suffix belowppsyntax- displayed syntax without the root commandsuggestion- suggested text without the root commandgroup- help section the command belongs to
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHelp sections, declared in presentation order. -
Constructor Summary
ConstructorsConstructorDescriptionCommandAction(String name, String permission, String syntax, String suggestion, CommandAction.Group group) Creates an instance of aCommandActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepermissionrecord component.Returns the value of thesuggestionrecord component.syntax()Returns the value of thesyntaxrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommandAction
public CommandAction(String name, String permission, String syntax, String suggestion, CommandAction.Group group) Creates an instance of aCommandActionrecord class.- Parameters:
name- the value for thenamerecord componentpermission- the value for thepermissionrecord componentsyntax- the value for thesyntaxrecord componentsuggestion- the value for thesuggestionrecord componentgroup- the value for thegrouprecord 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). -
name
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
syntax
-
suggestion
Returns the value of thesuggestionrecord component.- Returns:
- the value of the
suggestionrecord component
-
group
-