Record Class Command
java.lang.Object
java.lang.Record
ua.mcchickenstudio.opencreative.settings.Command
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandLinerecord component.booleanconsole()Returns the value of theconsolerecord component.longdelay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.voidfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Command
Creates an instance of aCommandrecord class.- Parameters:
commandLine- the value for thecommandLinerecord componentconsole- the value for theconsolerecord componentdelay- the value for thedelayrecord component
-
-
Method Details
-
execute
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
commandLine
Returns the value of thecommandLinerecord component.- Returns:
- the value of the
commandLinerecord component
-
console
public boolean console()Returns the value of theconsolerecord component.- Returns:
- the value of the
consolerecord component
-
delay
public long delay()Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-