Accessing scala.None from Java

This might work:

final scala.Option<String> x = scala.Option.apply(null);

def apply [A] (x: A): Option[A]
An Option factory which creates
Some(x) if the argument is not null, and None if it is null.

Leave a Comment