java.lang.Object
net.fortuna.ical4j.model.ComponentList<T>
- All Implemented Interfaces:
Serializable,Comparable<ComponentList<? extends Component>>,ContentCollection<T>
public class ComponentList<T extends Component>
extends Object
implements ContentCollection<T>, Comparable<ComponentList<? extends Component>>
$Id$ [Apr 5, 2004]
Defines a list of iCalendar components.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ComponentList(List<? extends T> components) Create new component list containing the components in the specified list. -
Method Summary
Modifier and TypeMethodDescriptionaddAll(@NotNull Collection<T> content) intcompareTo(ComponentList<? extends Component> o) booleangetAll()getComponent(String aName) Deprecated.getComponents(String... name) Deprecated.inthashCode()final StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fortuna.ical4j.model.ContentCollection
get, getFirst, getRequired
-
Constructor Details
-
ComponentList
public ComponentList()Default constructor. -
ComponentList
Create new component list containing the components in the specified list.- Parameters:
components-
-
-
Method Details
-
add
- Specified by:
addin interfaceContentCollection<T extends Component>
-
addAll
- Specified by:
addAllin interfaceContentCollection<T extends Component>
-
remove
- Specified by:
removein interfaceContentCollection<T extends Component>
-
removeAll
- Specified by:
removeAllin interfaceContentCollection<T extends Component>
-
removeIf
- Specified by:
removeIfin interfaceContentCollection<T extends Component>
-
replace
- Specified by:
replacein interfaceContentCollection<T extends Component>
-
getAll
- Specified by:
getAllin interfaceContentCollection<T extends Component>
-
toString
-
getComponent
Deprecated.Returns the first component of specified name.- Parameters:
aName- name of component to return- Returns:
- a component or null if no matching component found
-
getComponents
Deprecated.Returns a list containing all components with specified name.- Parameters:
name- name of components to return- Returns:
- a list of components with the matching name
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<T extends Component>
-
ContentCollection.getFirst(String)