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 arg0)
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, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic 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 - java.text.ParseExceptionjava.io.IOExceptionjava.net.URISyntaxExceptionpublic final java.lang.String toString()
toString in class java.util.AbstractCollectionAbstractCollection.toString()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(java.lang.Object)public final boolean add(java.lang.Object arg0)
IllegalArgumentException where argument is not a
net.fortuna.ical4j.model.Component.add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.ArrayListList#add(E)public final boolean remove(Component component)
component - the component to removeList#remove(java.lang.Object)