Package net.fortuna.ical4j.model
Class AddressList
- java.lang.Object
-
- net.fortuna.ical4j.model.AddressList
-
- All Implemented Interfaces:
Serializable
,Iterable<URI>
public class AddressList extends Object implements Serializable, Iterable<URI>
$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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(URI address)
Add an address to the list.boolean
isEmpty()
Iterator<URI>
iterator()
boolean
remove(URI address)
Remove an address from the list.int
size()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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 boolean add(URI address)
Add an address to the list.- Parameters:
address
- the address to add- Returns:
- true
- See Also:
List.add(java.lang.Object)
-
isEmpty
public final boolean isEmpty()
- Returns:
- boolean indicates if the list is empty
- See Also:
List.isEmpty()
-
iterator
public final Iterator<URI> iterator()
- Specified by:
iterator
in interfaceIterable<URI>
- Returns:
- an iterator
- See Also:
List.iterator()
-
remove
public final boolean 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)
-
size
public final int size()
- Returns:
- the number of addresses in the list
- See Also:
List.size()
-
-