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)
int
compareTo(ParameterList o)
boolean
equals(Object o)
List<Parameter>
getAll()
<T extends Parameter>
Optional<T>getParameter(String aName)
Deprecated.ParameterList
getParameters(String name)
Deprecated.int
hashCode()
ContentCollection<Parameter>
remove(Parameter content)
ContentCollection<Parameter>
removeAll(String... name)
ContentCollection<Parameter>
replace(Parameter content)
String
toString()
-
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:
add
in interfaceContentCollection<Parameter>
-
addAll
public ContentCollection<Parameter> addAll(Collection<Parameter> content)
- Specified by:
addAll
in interfaceContentCollection<Parameter>
-
remove
public ContentCollection<Parameter> remove(Parameter content)
- Specified by:
remove
in interfaceContentCollection<Parameter>
-
removeAll
public ContentCollection<Parameter> removeAll(String... name)
- Specified by:
removeAll
in interfaceContentCollection<Parameter>
-
replace
public ContentCollection<Parameter> replace(Parameter content)
- Specified by:
replace
in interfaceContentCollection<Parameter>
-
getAll
public List<Parameter> getAll()
- Specified by:
getAll
in 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:
compareTo
in interfaceComparable<ParameterList>
-
-