Record Class DumpCommandsCommand.CommandDef
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.command.commands.utility.metacommands.DumpCommandsCommand.CommandDef
- Enclosing class:
DumpCommandsCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theclassNamerecord component.private final StringThe field for thenamerecord component.private final StringThe field for theownerrecord component.private final StringThe field for theownerClassrecord component.private final StringThe field for thepermissionrecord component.The field for thepermissionGroupsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.owner()Returns the value of theownerrecord component.Returns the value of theownerClassrecord component.Returns the value of thepermissionrecord component.Returns the value of thepermissionGroupsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
className
The field for theclassNamerecord component. -
owner
The field for theownerrecord component. -
ownerClass
The field for theownerClassrecord component. -
permission
The field for thepermissionrecord component. -
permissionGroups
The field for thepermissionGroupsrecord component.
-
-
Constructor Details
-
CommandDef
private CommandDef(String name, String className, String owner, String ownerClass, String permission, List<String> permissionGroups) Creates an instance of aCommandDefrecord class.- Parameters:
name- the value for thenamerecord componentclassName- the value for theclassNamerecord componentowner- the value for theownerrecord componentownerClass- the value for theownerClassrecord componentpermission- the value for thepermissionrecord componentpermissionGroups- the value for thepermissionGroupsrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
ownerClass
Returns the value of theownerClassrecord component.- Returns:
- the value of the
ownerClassrecord component
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
permissionGroups
Returns the value of thepermissionGroupsrecord component.- Returns:
- the value of the
permissionGroupsrecord component
-