net.fortuna.ical4j.model
public class ComponentList extends ArrayList implements Serializable
modCount| 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(Object component)
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() |
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic ComponentList()
public ComponentList(int initialCapacity)
initialCapacity - the initial capacity of the listpublic ComponentList(ComponentList components) throws ParseException, IOException, URISyntaxException
components - a component list to copyIOException - where an error occurs reading component dataParseException - where component data cannot be parsedURISyntaxException - where component data contains an invalid URIpublic final String toString()
toString in class AbstractCollectionpublic final Component getComponent(String aName)
aName - name of component to returnpublic final ComponentList getComponents(String name)
name - name of components to returnpublic final boolean add(Component component)
component - the component to addList.add(Object)public final boolean add(Object component)
IllegalArgumentException where argument is not a
net.fortuna.ical4j.model.Component.add in interface Collectionadd in interface Listadd in class ArrayListcomponent - a component to addList.add(Object)public final boolean remove(Component component)
component - the component to removeList.remove(java.lang.Object)Copyright © 2004-2013 Micronode. All Rights Reserved.