net.fortuna.ical4j.model
Class ComponentList
ArrayList
net.fortuna.ical4j.model.ComponentList
- Serializable
public class ComponentList
extends ArrayList
implements Serializable
$Id: ComponentList.java,v 1.12 2008/12/16 12:34:53 fortuna Exp $ [Apr 5, 2004]
Defines a list of iCalendar components.
ComponentList() - Default constructor.
|
ComponentList(ComponentList components) - Creates a deep copy of the specified component list.
|
ComponentList(int initialCapacity) - Creates a new instance with the specified initial capacity.
|
boolean | add(Component component) - Add a component to the list.
|
boolean | add(Object arg0) - Overrides superclass to throw an
IllegalArgumentException where argument is not a
net.fortuna.ical4j.model.Component .
|
Component | getComponent(String aName) - Returns the first component of specified name.
|
ComponentList | getComponents(String name) - Returns a list containing all components with specified name.
|
boolean | remove(Component component) - Remove a component from the list.
|
String | toString()
|
ComponentList
public ComponentList()
Default constructor.
ComponentList
public ComponentList(ComponentList components)
throws ParseException,
IOException,
URISyntaxException
Creates a deep copy of the specified component list.
ComponentList
public ComponentList(int initialCapacity)
Creates a new instance with the specified initial capacity.
initialCapacity
- the initial capacity of the list
add
public final boolean add(Component component)
Add a component to the list.
component
- the component to add
List.add(java.lang.Object)
add
public final boolean add(Object arg0)
Overrides superclass to throw an IllegalArgumentException
where argument is not a
net.fortuna.ical4j.model.Component
.
getComponent
public final Component getComponent(String aName)
Returns the first component of specified name.
aName
- name of component to return
- a component or null if no matching component found
getComponents
public final ComponentList getComponents(String name)
Returns a list containing all components with specified name.
name
- name of components to return
- a list of components with the matching name
remove
public final boolean remove(Component component)
Remove a component from the list.
component
- the component to remove
- true if the list contained the specified component
List.remove(java.lang.Object)
toString
public final String toString()
java.util.AbstractCollection.toString()