defaultVal method
Set a default value when it is None(null
)
Implementation
Maybe<T> defaultVal(T v) {
if (this == null) return Some(v);
return this;
}
Set a default value when it is None(null
)
Maybe<T> defaultVal(T v) {
if (this == null) return Some(v);
return this;
}