public class DuplicateNameValueList extends Object implements Serializable, Cloneable
Constructor and Description |
---|
DuplicateNameValueList() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Object |
clone() |
boolean |
delete(String name)
Remove the element corresponding to this name.
|
String |
encode()
Encode the list in semicolon separated form.
|
StringBuilder |
encode(StringBuilder buffer) |
boolean |
equals(Object otherObject)
Compare if two NameValue lists are equal.
|
Iterator<String> |
getNames()
Get a list of parameter names.
|
Collection |
getNameValue(String name)
Get the NameValue record given a name.
|
String |
getParameter(String name)
Get the parameter as a String.
|
Object |
getValue(String name)
Do a lookup on a given name and return value associated with it.
|
int |
hashCode() |
boolean |
hasNameValue(String name)
Returns a boolean telling if this NameValueList has a record with this name
|
boolean |
isEmpty() |
Iterator<NameValue> |
iterator()
Return an iterator for the name-value pairs of this list.
|
NameValue |
put(String key,
NameValue value) |
NameValue |
remove(Object key) |
void |
set(NameValue nv)
Set a namevalue object in this list.
|
void |
set(String name,
Object value)
Set a namevalue object in this list.
|
int |
size() |
String |
toString() |
Collection<NameValue> |
values() |
public String encode()
public StringBuilder encode(StringBuilder buffer)
public void set(NameValue nv)
public boolean equals(Object otherObject)
public Object getValue(String name)
public Collection getNameValue(String name)
public boolean hasNameValue(String name)
public boolean delete(String name)
public Iterator<NameValue> iterator()
public Iterator<String> getNames()
public String getParameter(String name)
public void clear()
public boolean isEmpty()
public int size()
public Collection<NameValue> values()
Copyright © 2018. All Rights Reserved.