[New] Added Parameter.isSet()

This commit is contained in:
Robert von Burg 2021-12-03 17:19:34 +01:00
parent 19f6b5436d
commit 055a60bd78
1 changed files with 9 additions and 0 deletions

View File

@ -74,6 +74,15 @@ public interface Parameter<T> extends StrolchElement, Comparable<Parameter<?>> {
*/
boolean isEmpty();
/**
* Returns true if the value is set, i.e. not empty. This is the inverse of {@link #isEmpty()}
*
* @return true if the value is set, i.e. not empty
*/
default boolean isSet() {
return !isEmpty();
}
/**
* Returns true if the given parameter's value is equal to the current value
*