public class MultiValue extends Object
Constructor and Description |
---|
MultiValue() |
Modifier and Type | Method and Description |
---|---|
boolean |
addValue(String value) |
boolean |
contains(String value) |
Collection<String> |
getValues() |
boolean |
hasValues() |
boolean |
isEmpty() |
void |
removeAll()
Removes all values contained by this instance.
|
boolean |
removeValue(String value) |
int |
size() |
String |
toString() |
public boolean addValue(String value)
value
- the value to add. null
s are hold as an empty string.true
if the list of values has been changed, false
otherwise.public boolean removeValue(String value)
value
- the value to remove.true
if the list of values has been changed, false
otherwise.public Collection<String> getValues()
public int size()
public boolean contains(String value)
value
- the value to check.true
if the value is contained by this instance.public boolean hasValues()
true
if at least one value is was added to this instance, false
otherwise.public void removeAll()
public boolean isEmpty()
true
, if this instance is emptyCopyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.