|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
net.fortuna.ical4j.model.ComponentList
public class ComponentList
$Id: ComponentList.java,v 1.17 2011/02/20 03:12:32 fortuna Exp $ [Apr 5, 2004] Defines a list of iCalendar components.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.util.ArrayList |
|---|
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 |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode |
| Constructor Detail |
|---|
public ComponentList()
public ComponentList(int initialCapacity)
initialCapacity - the initial capacity of the list
public ComponentList(ComponentList components)
throws java.text.ParseException,
java.io.IOException,
java.net.URISyntaxException
components - a component list to copy
java.io.IOException - where an error occurs reading component data
java.text.ParseException - where component data cannot be parsed
java.net.URISyntaxException - where component data contains an invalid URI| Method Detail |
|---|
public final java.lang.String toString()
toString in class java.util.AbstractCollectionpublic final Component getComponent(java.lang.String aName)
aName - name of component to return
public final ComponentList getComponents(java.lang.String name)
name - name of components to return
public final boolean add(Component component)
component - the component to add
List#add(java.lang.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.Collectionadd in interface java.util.Listadd in class java.util.ArrayListcomponent - a component to add
List#add(E)public final boolean remove(Component component)
component - the component to remove
List#remove(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||