Record Class Mail
java.lang.Object
java.lang.Record
net.flectone.pulse.module.command.mail.model.Mail
- Record Components:
id- the database iddate- when it was sent, in millisecondssender- the sending player idreceiver- the addressed player idmessage- the text
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.intreceiver()Returns the value of thereceiverrecord component.intsender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Mail
Creates an instance of aMailrecord class.
-
-
Method Details
-
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. -
id
-
date
-
sender
-
receiver
-
message
-