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)
Uses
ObjectUtils to test equality. |
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()
Uses
HashCodeBuilder to build 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() |
public ParameterList()
public ParameterList(boolean unmodifiable)
public ParameterList(ParameterList list, boolean unmodifiable) throws java.net.URISyntaxException
list - a parameter list to copy parameters fromjava.net.URISyntaxExceptionpublic final java.lang.String toString()
toString in class java.lang.ObjectAbstractCollection.toString()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 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 - public final int size()
List.size()public final boolean equals(java.lang.Object arg0)
ObjectUtils to test equality. Two parameter lists are equals if and only if they contain the same
set of parameters.equals in class java.lang.ObjectObject.equals(java.lang.Object)public final int hashCode()
HashCodeBuilder to build hashcode.hashCode in class java.lang.Object