[New] Added ListParameter.clearValue()

This commit is contained in:
Robert von Burg 2015-02-14 19:14:34 +01:00
parent c2efc19889
commit 2a79ed701b
2 changed files with 10 additions and 0 deletions

View File

@ -42,4 +42,9 @@ public interface ListParameter<E> extends Parameter<List<E>> {
* @return true if the value was removed, false if it did not exist
*/
public boolean removeValue(E value);
/**
* Clears the list of values
*/
public void clearValue();
}

View File

@ -121,6 +121,11 @@ public class StringListParameter extends AbstractParameter<List<String>> impleme
return this.value.remove(value);
}
@Override
public void clearValue() {
this.value.clear();
}
@Override
public String getType() {
return TYPE;