Record Class CommandsSettings.PrivateMessageCommand
java.lang.Object
java.lang.Record
ovh.mythmc.social.api.configuration.section.settings.CommandsSettings.PrivateMessageCommand
- Enclosing class:
CommandsSettings
-
Constructor Summary
ConstructorsConstructorDescriptionPrivateMessageCommand(boolean enabled, String prefix, String arrow, String hoverText) Creates an instance of aPrivateMessageCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarrow()Returns the value of thearrowrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehoverTextrecord component.prefix()Returns the value of theprefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrivateMessageCommand
Creates an instance of aPrivateMessageCommandrecord class.- Parameters:
enabled- the value for theenabledrecord componentprefix- the value for theprefixrecord componentarrow- the value for thearrowrecord componenthoverText- the value for thehoverTextrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
arrow
Returns the value of thearrowrecord component.- Returns:
- the value of the
arrowrecord component
-
hoverText
Returns the value of thehoverTextrecord component.- Returns:
- the value of the
hoverTextrecord component
-