Package akka.japi
Class Option$
- java.lang.Object
-
- akka.japi.Option$
-
public class Option$ extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Option$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Option<T>
fromScalaOption(scala.Option<T> scalaOption)
Converts a Scala Option to a Java Option<A> scala.Option<A>
java2ScalaOption(Option<A> o)
<A> Option<A>
none()
Option
factory that createsNone
<A> Option<A>
option(A v)
Option
factory that createsNone
ifv
isnull
,Some(v)
otherwise.<A> Option<A>
scala2JavaOption(scala.Option<A> o)
<A> Option<A>
some(A v)
Option
factory that createsSome
-
-
-
Field Detail
-
MODULE$
public static final Option$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
some
public <A> Option<A> some(A v)
Option
factory that createsSome
-
none
public <A> Option<A> none()
Option
factory that createsNone
-
option
public <A> Option<A> option(A v)
Option
factory that createsNone
ifv
isnull
,Some(v)
otherwise.
-
fromScalaOption
public <T> Option<T> fromScalaOption(scala.Option<T> scalaOption)
Converts a Scala Option to a Java Option
-
java2ScalaOption
public <A> scala.Option<A> java2ScalaOption(Option<A> o)
-
scala2JavaOption
public <A> Option<A> scala2JavaOption(scala.Option<A> o)
-
-