[New] Added Parameter.isSet()
This commit is contained in:
parent
19f6b5436d
commit
055a60bd78
|
@ -74,6 +74,15 @@ public interface Parameter<T> extends StrolchElement, Comparable<Parameter<?>> {
|
||||||
*/
|
*/
|
||||||
boolean isEmpty();
|
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
|
* Returns true if the given parameter's value is equal to the current value
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue