Package dev.unnm3d.redischat.chat
Record Class ChatFormat
java.lang.Object
java.lang.Record
dev.unnm3d.redischat.chat.ChatFormat
-
Constructor Summary
ConstructorsConstructorDescriptionChatFormat(@NotNull String permission, @NotNull String format, @NotNull String private_format, @NotNull String receive_private_format, @NotNull String mention_format, @NotNull String link_format, @NotNull String join_format, @NotNull String quit_format) Creates an instance of aChatFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull Stringformat()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of thejoin_formatrecord component.@NotNull StringReturns the value of thelink_formatrecord component.@NotNull StringReturns the value of themention_formatrecord component.@NotNull StringReturns the value of thepermissionrecord component.@NotNull StringReturns the value of theprivate_formatrecord component.@NotNull StringReturns the value of thequit_formatrecord component.@NotNull StringReturns the value of thereceive_private_formatrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatFormat
public ChatFormat(@NotNull @NotNull String permission, @NotNull @NotNull String format, @NotNull @NotNull String private_format, @NotNull @NotNull String receive_private_format, @NotNull @NotNull String mention_format, @NotNull @NotNull String link_format, @NotNull @NotNull String join_format, @NotNull @NotNull String quit_format) Creates an instance of aChatFormatrecord class.- Parameters:
permission- the value for thepermissionrecord componentformat- the value for theformatrecord componentprivate_format- the value for theprivate_formatrecord componentreceive_private_format- the value for thereceive_private_formatrecord componentmention_format- the value for themention_formatrecord componentlink_format- the value for thelink_formatrecord componentjoin_format- the value for thejoin_formatrecord componentquit_format- the value for thequit_formatrecord 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). -
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
private_format
Returns the value of theprivate_formatrecord component.- Returns:
- the value of the
private_formatrecord component
-
receive_private_format
Returns the value of thereceive_private_formatrecord component.- Returns:
- the value of the
receive_private_formatrecord component
-
mention_format
Returns the value of themention_formatrecord component.- Returns:
- the value of the
mention_formatrecord component
-
link_format
Returns the value of thelink_formatrecord component.- Returns:
- the value of the
link_formatrecord component
-
join_format
Returns the value of thejoin_formatrecord component.- Returns:
- the value of the
join_formatrecord component
-
quit_format
Returns the value of thequit_formatrecord component.- Returns:
- the value of the
quit_formatrecord component
-