Mail¶
-
public class
Mail
¶ The
Mail
class represents an email message.
Constructors¶
Mail¶
-
public
Mail
(String fromAddress, String toAddress, String subject, String message)¶ Creates a new instance of
Mail
, with all fields set to the values specified in the parameters.Parameters: - fromAddress – the email address of the sender
- toAddress – the email address of the recipient
- subject – the subject of the email
- message – the body of the email
Methods¶
equals¶
-
public boolean
equals
(Object obj)¶ Indicates whether some other object is “equal to” this one. Returns true if this Mail and the object to compare have reference equality or their field values are all equal.
Parameters: - obj – The reference object with which to compare
Returns: true if this object is the same as the obj argument; false otherwise.