Package net.fortuna.ical4j.model
Class ParameterList
- java.lang.Object
-
- net.fortuna.ical4j.model.ParameterList
-
- All Implemented Interfaces:
Serializable,Comparable<ParameterList>,ContentCollection<Parameter>
public class ParameterList extends Object implements ContentCollection<Parameter>, Comparable<ParameterList>
$Id$ [Apr 5, 2004] Accessor implementation for a list of iCalendar parameters.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterList()Default constructor.ParameterList(List<Parameter> list)Creates an unmodifiable copy of the specified parameter list.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContentCollection<Parameter>add(Parameter content)ContentCollection<Parameter>addAll(Collection<Parameter> content)intcompareTo(ParameterList o)booleanequals(Object o)List<Parameter>getAll()<T extends Parameter>
Optional<T>getParameter(String aName)Deprecated.ParameterListgetParameters(String name)Deprecated.inthashCode()ContentCollection<Parameter>remove(Parameter content)ContentCollection<Parameter>removeAll(String... name)ContentCollection<Parameter>replace(Parameter content)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.fortuna.ical4j.model.ContentCollection
get, getFirst, getRequired
-
-
-
-
Method Detail
-
add
public ContentCollection<Parameter> add(Parameter content)
- Specified by:
addin interfaceContentCollection<Parameter>
-
addAll
public ContentCollection<Parameter> addAll(Collection<Parameter> content)
- Specified by:
addAllin interfaceContentCollection<Parameter>
-
remove
public ContentCollection<Parameter> remove(Parameter content)
- Specified by:
removein interfaceContentCollection<Parameter>
-
removeAll
public ContentCollection<Parameter> removeAll(String... name)
- Specified by:
removeAllin interfaceContentCollection<Parameter>
-
replace
public ContentCollection<Parameter> replace(Parameter content)
- Specified by:
replacein interfaceContentCollection<Parameter>
-
getAll
public List<Parameter> getAll()
- Specified by:
getAllin interfaceContentCollection<Parameter>
-
getParameter
@Deprecated public final <T extends Parameter> Optional<T> getParameter(String aName)
Deprecated.Returns the first parameter with the specified name.- Parameters:
aName- name of the parameter- Returns:
- the first matching parameter or null if no matching parameters
-
getParameters
@Deprecated public final ParameterList getParameters(String name)
Deprecated.Returns a list of parameters with the specified name.- Parameters:
name- name of parameters to return- Returns:
- a parameter list
-
compareTo
public int compareTo(ParameterList o)
- Specified by:
compareToin interfaceComparable<ParameterList>
-
-