X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FOptions.java;h=83444bb6b34b4297c681de4c87afcf8f753da605;hb=7fb49938b9198110c34bcc600c545bfa91acf6f2;hp=c8e3589d497e686f8d59ecb84536baf8680c9f7d;hpb=6e9a43ccd93ae125720547c0fe421dc81a54ba90;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/Options.java b/src/main/java/net/pterodactylus/sone/core/Options.java index c8e3589..83444bb 100644 --- a/src/main/java/net/pterodactylus/sone/core/Options.java +++ b/src/main/java/net/pterodactylus/sone/core/Options.java @@ -181,44 +181,26 @@ public class Options { this.optionWatcher = optionWatcher; } - /** - * {@inheritDoc} - */ @Override public T getDefault() { return defaultValue; } - /** - * {@inheritDoc} - */ @Override public T get() { return (value != null) ? value : defaultValue; } - /** - * Returns the real value of the option. This will also return an unset - * value (usually {@code null})! - * - * @return The real value of the option - */ @Override public T getReal() { return value; } - /** - * {@inheritDoc} - */ @Override public boolean validate(T value) { return (validator == null) || (value == null) || validator.apply(value); } - /** - * {@inheritDoc} - */ @Override public void set(T value) { if ((value != null) && (validator != null) && (!validator.apply(value))) {