[New] Added ListParameter.clearValue()
This commit is contained in:
parent
c2efc19889
commit
2a79ed701b
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue