projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store the insert URI in the information used for inserting.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
Options.java
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
(file)
--- 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;
}
this.optionWatcher = optionWatcher;
}
- /**
- * {@inheritDoc}
- */
@Override
public T getDefault() {
return defaultValue;
}
@Override
public T getDefault() {
return defaultValue;
}
- /**
- * {@inheritDoc}
- */
@Override
public T get() {
return (value != null) ? value : defaultValue;
}
@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;
}
@Override
public T getReal() {
return value;
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean validate(T value) {
return (validator == null) || (value == null) || validator.apply(value);
}
@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))) {
@Override
public void set(T value) {
if ((value != null) && (validator != null) && (!validator.apply(value))) {