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 aPrivateLogonMessage
record class. -
Method Summary
Modifier and TypeMethodDescriptioncolour()
Returns the value of thecolour
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theguildAlarmDescription
record component.Returns the value of theguildmessage
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenewsBoard
record component.toJson()
final String
toString()
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 aPrivateLogonMessage
record class.- Parameters:
guildmessage
- the value for theguildmessage
record componentguildAlarmDescription
- the value for theguildAlarmDescription
record componentcolour
- the value for thecolour
record componentnewsBoard
- the value for thenewsBoard
record 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 theguildmessage
record component.- Returns:
- the value of the
guildmessage
record component
-
guildAlarmDescription
Returns the value of theguildAlarmDescription
record component.- Returns:
- the value of the
guildAlarmDescription
record component
-
colour
Returns the value of thecolour
record component.- Returns:
- the value of the
colour
record component
-
newsBoard
Returns the value of thenewsBoard
record component.- Returns:
- the value of the
newsBoard
record component
-