public class ParameterList
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ParameterList()
Default constructor.
|
ParameterList(boolean unmodifiable)
Constructor.
|
ParameterList(ParameterList list,
boolean unmodifiable)
Creates a deep copy of the specified parameter list.
|
Modifier and Type | Method and Description |
---|---|
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<Parameter> |
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() |
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 mutablejava.net.URISyntaxException
- where a parameter in the list specifies an invalid URI valuepublic final java.lang.String toString()
toString
in class java.lang.Object
public final Parameter getParameter(java.lang.String aName)
aName
- name of the parameterpublic final ParameterList getParameters(java.lang.String name)
name
- name of parameters to returnpublic final boolean add(Parameter parameter)
parameter
- the parameter to addList.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 namepublic final boolean isEmpty()
List.isEmpty()
public final java.util.Iterator<Parameter> iterator()
List.iterator()
public final boolean remove(Parameter parameter)
parameter
- the parameter to removeList.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