Record Class PrivateLogonMessage
public record PrivateLogonMessage(String guildmessage, String guildAlarmDescription, String colour, PrivateBoard newsBoard)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPrivateLogonMessage(String guildmessage, String guildAlarmDescription, String colour, PrivateBoard newsBoard) Creates an instance of aPrivateLogonMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolour()Returns the value of thecolourrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguildAlarmDescriptionrecord component.Returns the value of theguildmessagerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenewsBoardrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrivateLogonMessage
public PrivateLogonMessage(String guildmessage, String guildAlarmDescription, String colour, PrivateBoard newsBoard) Creates an instance of aPrivateLogonMessagerecord class.- Parameters:
guildmessage- the value for theguildmessagerecord componentguildAlarmDescription- the value for theguildAlarmDescriptionrecord componentcolour- the value for thecolourrecord componentnewsBoard- the value for thenewsBoardrecord component
-
-
Method Details
-
toJson
-
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). -
guildmessage
Returns the value of theguildmessagerecord component.- Returns:
- the value of the
guildmessagerecord component
-
guildAlarmDescription
Returns the value of theguildAlarmDescriptionrecord component.- Returns:
- the value of the
guildAlarmDescriptionrecord component
-
colour
Returns the value of thecolourrecord component.- Returns:
- the value of the
colourrecord component
-
newsBoard
Returns the value of thenewsBoardrecord component.- Returns:
- the value of the
newsBoardrecord component
-