Package net.fortuna.ical4j.model
Class AddressList
- java.lang.Object
-
- net.fortuna.ical4j.model.AddressList
-
- All Implemented Interfaces:
Serializable
public class AddressList extends Object implements Serializable
$Id$ [23-Apr-2004] Defines a list of iCalendar addresses.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddressList()
Default constructor.AddressList(String aValue)
Parses the specified string representation to create a list of addresses.AddressList(String aValue, boolean allowInvalidAddress)
AddressList(List<URI> addresses)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressList
add(URI address)
Add an address to the list.List<URI>
getAddresses()
AddressList
remove(URI address)
Remove an address from the list.String
toString()
static String
toString(List<URI> addresses)
-
-
-
Constructor Detail
-
AddressList
public AddressList()
Default constructor.
-
AddressList
public AddressList(String aValue) throws URISyntaxException
Parses the specified string representation to create a list of addresses.- Parameters:
aValue
- a string representation of a list of addresses- Throws:
URISyntaxException
- where the specified string is not a valid representation
-
AddressList
public AddressList(String aValue, boolean allowInvalidAddress) throws URISyntaxException
- Throws:
URISyntaxException
-
-
Method Detail
-
add
public final AddressList add(URI address)
Add an address to the list.- Parameters:
address
- the address to add- Returns:
- true
- See Also:
List.add(java.lang.Object)
-
remove
public final AddressList remove(URI address)
Remove an address from the list.- Parameters:
address
- the address to remove- Returns:
- true if the list contained the specified address
- See Also:
List.remove(java.lang.Object)
-
-