Package com.independentsoft.email.mime
Class Mailbox
java.lang.Object
com.independentsoft.email.mime.Mailbox
Represents a mailbox.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets email address.getName()Gets display name.voidsetEmailAddress(String emailAddress)Sets email address.voidSets display name.toString()Returns a String that represents the current Mailbox.
-
Constructor Details
-
Mailbox
public Mailbox()Initializes a new instance of the Mailbox. -
Mailbox
Initializes a new instance of the Mailbox.- Parameters:
emailAddress- Email address of mailbox owner.name- Name of mailbox owner.
-
Mailbox
Initializes a new instance of the Mailbox.- Parameters:
mailbox- Email address and name of mailbox owner.
-
-
Method Details
-
toString
Returns a String that represents the current Mailbox. -
getName
Gets display name.- Returns:
- The display name.
-
setName
Sets display name.- Parameters:
name- The display name.
-
getEmailAddress
Gets email address.- Returns:
- The email address.
-
setEmailAddress
Sets email address.- Parameters:
emailAddress- The email address.
-