Add resetValue method to Setting
* `resetValue` has a default implementation which sets the value to
the default while notifying subscribers. Implementations may choose
to override this, but in most cases it will suffice.
*/
boolean setValue(T newValue);
+ /**
+ * Resets the value stored in this {@link Setting<T>} to the default value.
+ */
+ default void resetValue() {
+ setValue(getDefaultValue());
+ }
+
/**
* Returns the human readable name of this {@link Setting}.
*/
