public static interface Option<T> {
/**
- * Returns the default value of the option.
- *
- * @return The default value of the option
- */
- public T getDefault();
-
- /**
* Returns the current value of the option. If the current value is not
* set (usually {@code null}), the default value is returned.
*
* {@inheritDoc}
*/
@Override
- public T getDefault() {
- return defaultValue;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
public T get() {
return (value != null) ? value : defaultValue;
}