Top Description Fields Constructors Methods
net.fortuna.ical4j.model

public Class AddressList

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
net.fortuna.ical4j.util.CompatibilityHints, .RegEx, .Strings, .Uris, java.io.Serializable, java.net.URI, .URISyntaxException, java.util.ArrayList, .Collections, .List, java.util.stream.Collectors

$Id$ [23-Apr-2004] Defines a list of iCalendar addresses.
Author
Ben Fortuna

Field Summary

Modifier and TypeField and Description
private final List<URI>
private static final long

Constructor Summary

AccessConstructor and Description
public
AddressList()

Default constructor.

public
AddressList(final String
a string representation of a list of addresses
aValue
)

Parses the specified string representation to create a list of addresses.

public
AddressList(final String aValue, boolean allowInvalidAddress)

public
AddressList(List<URI> addresses)

Method Summary

Modifier and TypeMethod and Description
public final AddressList

Returns:

true
add
(final URI
the address to add
address
)

Add an address to the list.

public List<URI>
public final AddressList

Returns:

true if the list contained the specified address
remove
(final URI
the address to remove
address
)

Remove an address from the list.

public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public static String
toString(List<URI> addresses)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

addressesback to summary
private final List<URI> addresses
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

AddressListback to summary
public AddressList()

Default constructor.

AddressListback to summary
public AddressList(final String aValue) throws URISyntaxException

Parses the specified string representation to create a list of addresses.

Parameters
aValue:String

a string representation of a list of addresses

Exceptions
URISyntaxException:
where the specified string is not a valid representation
AddressListback to summary
public AddressList(final String aValue, boolean allowInvalidAddress) throws URISyntaxException
AddressListback to summary
public AddressList(List<URI> addresses)

Method Detail

addback to summary
public final AddressList add(final URI address)

Add an address to the list.

Parameters
address:URI

the address to add

Returns:AddressList

true

See Also
List#add(java.lang.Object)
getAddressesback to summary
public List<URI> getAddresses()
removeback to summary
public final AddressList remove(final URI address)

Remove an address from the list.

Parameters
address:URI

the address to remove

Returns:AddressList

true if the list contained the specified address

See Also
List#remove(java.lang.Object)
toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
toStringback to summary
public static String toString(List<URI> addresses)