Package akka.util

Class OptionVal$


  • public class OptionVal$
    extends java.lang.Object
    Represents non-existent values, null values.
    • Field Detail

      • MODULE$

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

      • OptionVal$

        public OptionVal$()
    • Method Detail

      • apply

        public <A> OptionVal<A> apply​(A x)
      • None

        public OptionVal<scala.runtime.Null$> None()
        Represents non-existent values, null values.
        Returns:
        (undocumented)
      • isEmpty$extension

        public final <A> boolean isEmpty$extension​(OptionVal<A> $this)
        Returns true if the option is OptionVal.None, false otherwise.
        Parameters:
        $this - (undocumented)
        Returns:
        (undocumented)
      • isDefined$extension

        public final <A> boolean isDefined$extension​(OptionVal<A> $this)
        Returns true if the option is OptionVal.None, false otherwise.
        Parameters:
        $this - (undocumented)
        Returns:
        (undocumented)
      • getOrElse$extension

        public final <B,​A> B getOrElse$extension​(OptionVal<A> $this,
                                                       B default_)
        Returns the option's value if the option is nonempty, otherwise return default.
        Parameters:
        $this - (undocumented)
        default_ - (undocumented)
        Returns:
        (undocumented)
      • contains$extension

        public final <B,​A> boolean contains$extension​(OptionVal<A> $this,
                                                            B it)
      • orNull$extension

        public final <A1,​A> A1 orNull$extension​(OptionVal<A> $this,
                                                      scala.Predef.$less$colon$less<scala.runtime.Null$,​A1> ev)
        Returns the option's value if it is nonempty, or null if it is empty.
        Parameters:
        $this - (undocumented)
        ev - (undocumented)
        Returns:
        (undocumented)
      • get$extension

        public final <A> A get$extension​(OptionVal<A> $this)
        Returns the option's value.
        Parameters:
        $this - (undocumented)
        Returns:
        (undocumented)
        Throws:
        java.util.NoSuchElementException - if the option is empty.
      • toString$extension

        public final <A> java.lang.String toString$extension​(OptionVal<A> $this)
      • hashCode$extension

        public final <A> int hashCode$extension​(OptionVal<A> $this)
      • equals$extension

        public final <A> boolean equals$extension​(OptionVal<A> $this,
                                                  java.lang.Object x$1)