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:
  • Constructor Details

    • 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 Details

    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • add

      public final boolean add(URI address)
      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

      public final Iterator<URI> iterator()
      Specified by:
      iterator in interface Iterable<URI>
      Returns:
      an iterator
      See Also:
    • 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:
    • size

      public final int size()
      Returns:
      the number of addresses in the list
      See Also: