Package net.fortuna.ical4j.model
Class AddressList
java.lang.Object
net.fortuna.ical4j.model.AddressList
- All Implemented Interfaces:
Serializable,Iterable<URI>
$Id$ [23-Apr-2004]
Defines a list of iCalendar addresses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AddressList(String aValue) Parses the specified string representation to create a list of addresses.AddressList(String aValue, boolean allowInvalidAddress) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AddressList
public AddressList()Default constructor. -
AddressList
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
- Throws:
URISyntaxException
-
-
Method Details
-
toString
-
add
Add an address to the list.- Parameters:
address- the address to add- Returns:
- true
- See Also:
-
isEmpty
public final boolean isEmpty()- Returns:
- boolean indicates if the list is empty
- See Also:
-
iterator
-
remove
Remove an address from the list.- Parameters:
address- the address to remove- Returns:
- true if the list contained the specified address
- See Also:
-
size
public final int size()- Returns:
- the number of addresses in the list
- See Also:
-