◆ getMail()
String org.turro.mail.provider.MailRecipient.getMail |
( |
| ) |
|
◆ getName()
String org.turro.mail.provider.MailRecipient.getName |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.mail.provider.MailRecipient.isEmpty |
( |
| ) |
|
◆ of() [1/3]
Definition at line 94 of file MailRecipient.java.
95 MailRecipient recipient =
new MailRecipient();
96 recipient.mail = contact.getEmail();
97 recipient.name = contact.getName();
98 recipient.formal = contact.getFormal();
99 recipient.friendly = contact.getFriendly();
◆ of() [2/3]
static MailRecipient org.turro.mail.provider.MailRecipient.of |
( |
String |
mail, |
|
|
String |
name |
|
) |
| |
|
static |
Definition at line 85 of file MailRecipient.java.
86 MailRecipient recipient =
new MailRecipient();
87 recipient.mail = mail;
88 recipient.name = name;
89 recipient.formal = name;
90 recipient.friendly = name;
◆ of() [3/3]
static MailRecipient org.turro.mail.provider.MailRecipient.of |
( |
String |
value | ) |
|
|
static |
Definition at line 75 of file MailRecipient.java.
77 if(value.contains(
"|")) {
78 String[] parts = value.split(
"\\|");
79 return MailRecipient.of(parts[0], parts[1]);
82 return MailRecipient.of(value,
null);
◆ parse()
String org.turro.mail.provider.MailRecipient.parse |
( |
String |
text | ) |
|
Definition at line 57 of file MailRecipient.java.
58 if(!Strings.isBlank(mail)) {
59 text = text.replaceAll(
"\\{email\\}", mail);
61 if(!Strings.isBlank(name)) {
62 text = text.replaceAll(
"\\{name\\}", name);
64 if(!Strings.isBlank(friendly)) {
65 text = text.replaceAll(
"\\{friendly\\}", friendly);
67 if(!Strings.isBlank(formal)) {
68 text = text.replaceAll(
"\\{formal\\}", formal);
◆ setMail()
void org.turro.mail.provider.MailRecipient.setMail |
( |
String |
mail | ) |
|
◆ setName()
void org.turro.mail.provider.MailRecipient.setName |
( |
String |
name | ) |
|
The documentation for this class was generated from the following file: