public class NameValueList extends Object implements Serializable, Cloneable, Map<String,NameValue>
Constructor and Description |
---|
NameValueList()
default constructor.
|
NameValueList(boolean sync) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Object |
clone() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
boolean |
delete(String name)
Remove the element corresponding to this name.
|
String |
encode()
Encode the list in semicolon separated form.
|
StringBuilder |
encode(StringBuilder buffer) |
Set<Map.Entry<String,NameValue>> |
entrySet() |
boolean |
equals(Object otherObject)
Compare if two NameValue lists are equal.
|
NameValue |
get(Object key) |
protected Map<String,NameValue> |
getMap() |
Iterator<String> |
getNames()
Get a list of parameter names.
|
NameValue |
getNameValue(String name)
Get the NameValue record given a name.
|
String |
getParameter(String name)
Get the parameter as a String.
|
String |
getParameter(String name,
boolean stripQuotes)
Get the parameter as a String.
|
Object |
getValue(String name)
Do a lookup on a given name and return value associated with it.
|
Object |
getValue(String name,
boolean stripQuotes)
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()
Return true if empty.
|
Iterator<NameValue> |
iterator()
Return an iterator for the name-value pairs of this list.
|
Set<String> |
keySet() |
NameValue |
put(String name,
NameValue nameValue) |
void |
putAll(Map<? extends String,? extends NameValue> map) |
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.
|
void |
setSeparator(String separator) |
int |
size()
Return the size of the embedded map
|
String |
toString() |
Collection<NameValue> |
values() |
public NameValueList()
public NameValueList(boolean sync)
public void setSeparator(String separator)
public String encode()
public StringBuilder encode(StringBuilder buffer)
public void set(NameValue nv)
public boolean equals(Object otherObject)
public Object getValue(String name)
public Object getValue(String name, boolean stripQuotes)
public NameValue getNameValue(String name)
public boolean hasNameValue(String name)
public boolean delete(String name)
public int size()
public boolean isEmpty()
public Iterator<NameValue> iterator()
public Iterator<String> getNames()
public String getParameter(String name)
public String getParameter(String name, boolean stripQuotes)
public boolean containsKey(Object key)
containsKey
in interface Map<String,NameValue>
public boolean containsValue(Object value)
containsValue
in interface Map<String,NameValue>
public Collection<NameValue> values()
public int hashCode()
Copyright © 2017. All Rights Reserved.