Record Class Mail
java.lang.Object
java.lang.Record
net.flectone.pulse.module.command.mail.model.Mail
-
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.- Parameters:
id- the value for theidrecord componentdate- the value for thedaterecord componentsender- the value for thesenderrecord componentreceiver- the value for thereceiverrecord componentmessage- the value for themessagerecord component
-
-
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
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
date
public long date()Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
sender
public int sender()Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
receiver
public int receiver()Returns the value of thereceiverrecord component.- Returns:
- the value of the
receiverrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-