public class ComponentList
extends java.util.ArrayList
implements java.io.Serializable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Component component)
Add a component to the list.
|
boolean |
add(java.lang.Object component)
Overrides superclass to throw an
IllegalArgumentException where argument is not a
net.fortuna.ical4j.model.Component . |
Component |
getComponent(java.lang.String aName)
Returns the first component of specified name.
|
ComponentList |
getComponents(java.lang.String name)
Returns a list containing all components with specified name.
|
boolean |
remove(Component component)
Remove a component from the list.
|
java.lang.String |
toString() |
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
public ComponentList()
public ComponentList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic ComponentList(ComponentList components) throws java.text.ParseException, java.io.IOException, java.net.URISyntaxException
components
- a component list to copyjava.io.IOException
- where an error occurs reading component datajava.text.ParseException
- where component data cannot be parsedjava.net.URISyntaxException
- where component data contains an invalid URIpublic final java.lang.String toString()
toString
in class java.util.AbstractCollection
public final Component getComponent(java.lang.String aName)
aName
- name of component to returnpublic final ComponentList getComponents(java.lang.String name)
name
- name of components to returnpublic final boolean add(Component component)
component
- the component to addList.add(Object)
public final boolean add(java.lang.Object component)
IllegalArgumentException
where argument is not a
net.fortuna.ical4j.model.Component
.add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.ArrayList
component
- a component to addList.add(Object)
public final boolean remove(Component component)
component
- the component to removeList.remove(java.lang.Object)
Copyright © 2004-2015 Micronode. All Rights Reserved.