Package akka.japi

Class Option$


  • public class Option$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Option$ MODULE$
      Static reference to the singleton instance of this Scala 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 creates None
      <A> Option<A> option​(A v)
      Option factory that creates None if v is null, Some(v) otherwise.
      <A> Option<A> scala2JavaOption​(scala.Option<A> o)  
      <A> Option<A> some​(A v)
      Option factory that creates Some
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final Option$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Option$

        public Option$()
    • Method Detail

      • some

        public <A> Option<A> some​(A v)
        Option factory that creates Some
        Parameters:
        v - (undocumented)
        Returns:
        (undocumented)
      • none

        public <A> Option<A> none()
        Option factory that creates None
        Returns:
        (undocumented)
      • option

        public <A> Option<A> option​(A v)
        Option factory that creates None if v is null, Some(v) otherwise.
        Parameters:
        v - (undocumented)
        Returns:
        (undocumented)
      • fromScalaOption

        public <T> Option<T> fromScalaOption​(scala.Option<T> scalaOption)
        Converts a Scala Option to a Java Option
        Parameters:
        scalaOption - (undocumented)
        Returns:
        (undocumented)
      • java2ScalaOption

        public <A> scala.Option<A> java2ScalaOption​(Option<A> o)
      • scala2JavaOption

        public <A> Option<A> scala2JavaOption​(scala.Option<A> o)