|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<E>
java.util.LinkedHashSet<MailAddress>
org.silverpeas.mail.ReceiverMailAddressSet
public class ReceiverMailAddressSet
This LinkedHashSet
implementation handles MailAddress
data.
It permits to define several receiver addresses and following configuration:
DEFAULT_BATCH_SIZE
by
default. If the value is less than or equals to zero, then all receivers are specified in a one
single sendReceiverMailAddressSet.MailRecipientType
of
the receivers
addresses. ReceiverMailAddressSet.MailRecipientType.TO
by
default
Nested Class Summary | |
---|---|
static class |
ReceiverMailAddressSet.MailRecipientType
|
Method Summary | |
---|---|
List<ReceiverMailAddressSet> |
getBatchedReceiversList()
Gets the list of receiver batches according to the defined number of receivers per send batch. |
String |
getEmailsSeparatedByComma()
Gets the list of emails each one separated by a comma. |
ReceiverMailAddressSet.MailRecipientType |
getRecipientType()
Gets the recipient type. |
static ReceiverMailAddressSet |
ofRecipientType(ReceiverMailAddressSet.MailRecipientType mailRecipientType)
Adds several MailAddress instances. |
static ReceiverMailAddressSet |
with(Collection<MailAddress> mailAddresses)
Adds several MailAddress instances. |
static ReceiverMailAddressSet |
with(MailAddress... mailAddresses)
See with(java.util.Collection) details. |
ReceiverMailAddressSet |
withReceiversBatchSizeOf(int receiversBatchSizeForOneSend)
Sets the new number of receivers that must be specified for one send. |
ReceiverMailAddressSet |
withRecipientType(ReceiverMailAddressSet.MailRecipientType recipientType)
Sets a recipient type. |
Methods inherited from class java.util.HashSet |
---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
public static ReceiverMailAddressSet with(MailAddress... mailAddresses)
with(java.util.Collection)
details.
public static ReceiverMailAddressSet with(Collection<MailAddress> mailAddresses)
MailAddress
instances.
mailAddresses
- the MailAddress
instances.
public static ReceiverMailAddressSet ofRecipientType(ReceiverMailAddressSet.MailRecipientType mailRecipientType)
MailAddress
instances.
mailRecipientType
- the recipient type to take into account.
public ReceiverMailAddressSet.MailRecipientType getRecipientType()
public ReceiverMailAddressSet withRecipientType(ReceiverMailAddressSet.MailRecipientType recipientType)
.MailRecipientType#TO
is taken in
account by default
recipientType
- the new recipient type to take into account.
public ReceiverMailAddressSet withReceiversBatchSizeOf(int receiversBatchSizeForOneSend)
receiversBatchSizeForOneSend
- the new number of receivers that must be specified for one
send.
public List<ReceiverMailAddressSet> getBatchedReceiversList()
public String getEmailsSeparatedByComma()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |