feat: Add function to reset options to their default value

This commit is contained in:
oSumAtrIX 2023-10-22 01:14:48 +02:00
parent e6de90d300
commit ebbaafb78e
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -59,6 +59,7 @@ abstract class PatchOption<T>(
/** /**
* Reset the [PatchOption] to its default value. * Reset the [PatchOption] to its default value.
* Override this method if you need to mutate the value instead of replacing it.
*/ */
open fun reset() { open fun reset() {
uncheckedValue = default uncheckedValue = default