public class AddressList extends java.util.AbstractList<Address> implements java.io.Serializable
| Constructor and Description |
|---|
AddressList(java.util.List<? extends Address> addresses,
boolean dontCopy) |
| Modifier and Type | Method and Description |
|---|---|
MailboxList |
flatten()
Returns a flat list of all mailboxes represented in this address list.
|
Address |
get(int index)
Gets an address.
|
static void |
main(java.lang.String[] args)
Test console.
|
static AddressList |
parse(java.lang.String rawAddressList)
Parse the address list string, such as the value of a From, To, Cc, Bcc,
Sender, or Reply-To header.
|
void |
print()
Dumps a representation of this address list to stdout, for debugging
purposes.
|
int |
size()
The number of elements in this list.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic AddressList(java.util.List<? extends Address> addresses, boolean dontCopy)
addresses - A List that contains only Address objects.dontCopy - true iff it is not possible for the addresses list to be
modified by someone else.public int size()
public Address get(int index)
public MailboxList flatten()
public void print()
public static AddressList parse(java.lang.String rawAddressList) throws org.apache.james.mime4j.field.address.parser.ParseException
org.apache.james.mime4j.field.address.parser.ParseExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2004-2012. All Rights Reserved.