|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.model.ParameterList
public class ParameterList
$Id: ParameterList.java,v 1.26 2011/03/19 05:31:13 fortuna Exp $ [Apr 5, 2004] Defines a list of iCalendar parameters. A parameter list may be specified as unmodifiable at instantiation - useful for constant properties that you don't want modified.
Constructor Summary | |
---|---|
ParameterList()
Default constructor. |
|
ParameterList(boolean unmodifiable)
Constructor. |
|
ParameterList(ParameterList list,
boolean unmodifiable)
Creates a deep copy of the specified parameter list. |
Method Summary | |
---|---|
boolean |
add(Parameter parameter)
Add a parameter to the list. |
boolean |
equals(java.lang.Object arg0)
|
Parameter |
getParameter(java.lang.String aName)
Returns the first parameter with the specified name. |
ParameterList |
getParameters(java.lang.String name)
Returns a list of parameters with the specified name. |
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(Parameter parameter)
Remove a parameter from the list. |
void |
removeAll(java.lang.String paramName)
Remove all parameters with the specified name. |
boolean |
replace(Parameter parameter)
Replace any parameters of the same type with the one specified. |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterList()
public ParameterList(boolean unmodifiable)
unmodifiable
- indicates whether the list should be mutablepublic ParameterList(ParameterList list, boolean unmodifiable) throws java.net.URISyntaxException
list
- a parameter list to copy parameters fromunmodifiable
- indicates whether the list should be mutable
java.net.URISyntaxException
- where a parameter in the list specifies an invalid URI valueMethod Detail |
---|
public final java.lang.String toString()
toString
in class java.lang.Object
public final Parameter getParameter(java.lang.String aName)
aName
- name of the parameter
public final ParameterList getParameters(java.lang.String name)
name
- name of parameters to return
public final boolean add(Parameter parameter)
parameter
- the parameter to add
List.add(java.lang.Object)
public final boolean replace(Parameter parameter)
parameter
- parameter to add to this list in place of all others with the same name
public final boolean isEmpty()
List.isEmpty()
public final java.util.Iterator iterator()
List.iterator()
public final boolean remove(Parameter parameter)
parameter
- the parameter to remove
List.remove(java.lang.Object)
public final void removeAll(java.lang.String paramName)
paramName
- the name of parameters to removepublic final int size()
List.size()
public final boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |