org.apache.james.mime4j.field.address
public class AddressList extends AbstractList<Address> implements Serializable
modCount
Constructor and Description |
---|
AddressList(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(String[] args)
Test console.
|
static AddressList |
parse(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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public int size()
size
in interface Collection<Address>
size
in interface List<Address>
size
in class AbstractCollection<Address>
public Address get(int index)
public MailboxList flatten()
public void print()
public static AddressList parse(String rawAddressList) throws org.apache.james.mime4j.field.address.parser.ParseException
org.apache.james.mime4j.field.address.parser.ParseException
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.