[New] added ListParameter.isValueEmpty()

This commit is contained in:
Robert von Burg 2015-02-14 23:24:20 +01:00
parent 6ae389bc75
commit 249cc0a6b0
2 changed files with 12 additions and 0 deletions

View File

@ -47,4 +47,11 @@ public interface ListParameter<E> extends Parameter<List<E>> {
* Clears the list of values
*/
public void clearValue();
/**
* Returns true if the list of values is empty, false if not
*
* @returns true if the list of values is empty, false if not
*/
public boolean isValueEmpty();
}

View File

@ -126,6 +126,11 @@ public class StringListParameter extends AbstractParameter<List<String>> impleme
this.value.clear();
}
@Override
public boolean isValueEmpty() {
return this.value.isEmpty();
}
@Override
public String getType() {
return TYPE;