of<T> static method
Implementation
static Optional<T> of<T>(final T? value) {
return value != null ? Present(value) : Empty();
}
static Optional<T> of<T>(final T? value) {
return value != null ? Present(value) : Empty();
}