Class OptionVal$

java.lang.Object
org.apache.pekko.util.OptionVal$

public class OptionVal$ extends Object
INTERNAL API
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final OptionVal$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <A> org.apache.pekko.util.OptionVal<A>
    apply(A x)
     
    final <B, A> boolean
    contains$extension(org.apache.pekko.util.OptionVal<A> $this, B it)
     
    final <A> boolean
    equals$extension(org.apache.pekko.util.OptionVal<A> $this, Object x$1)
     
    final <A> A
    get$extension(org.apache.pekko.util.OptionVal<A> $this)
    Returns the option's value.
    final <B, A> B
    getOrElse$extension(org.apache.pekko.util.OptionVal<A> $this, B default_)
    Returns the option's value if the option is nonempty, otherwise return default.
    final <A> int
    hashCode$extension(org.apache.pekko.util.OptionVal<A> $this)
     
    final <A> boolean
    isDefined$extension(org.apache.pekko.util.OptionVal<A> $this)
    Returns false if the option is OptionVal.None, true otherwise.
    final <A> boolean
    isEmpty$extension(org.apache.pekko.util.OptionVal<A> $this)
    Returns true if the option is OptionVal.None, false otherwise.
    <A> org.apache.pekko.util.OptionVal<A>
     
    org.apache.pekko.util.OptionVal<scala.runtime.Null$>
    Represents non-existent values, null values.
    final <A1, A> A1
    orNull$extension(org.apache.pekko.util.OptionVal<A> $this, scala.$less$colon$less<scala.runtime.Null$,A1> ev)
    Returns the option's value if it is nonempty, or null if it is empty.
    final <A> scala.Option<A>
    toOption$extension(org.apache.pekko.util.OptionVal<A> $this)
    Convert to scala.Option
    final <A> String
    toString$extension(org.apache.pekko.util.OptionVal<A> $this)
     

    Methods inherited from class java.lang.Object

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

    • MODULE$

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

    • OptionVal$

      public OptionVal$()
  • Method Details

    • apply

      public <A> org.apache.pekko.util.OptionVal<A> apply(A x)
    • none

      public <A> org.apache.pekko.util.OptionVal<A> none()
    • None

      public org.apache.pekko.util.OptionVal<scala.runtime.Null$> None()
      Represents non-existent values, null values.
    • isEmpty$extension

      public final <A> boolean isEmpty$extension(org.apache.pekko.util.OptionVal<A> $this)
      Returns true if the option is OptionVal.None, false otherwise.
    • isDefined$extension

      public final <A> boolean isDefined$extension(org.apache.pekko.util.OptionVal<A> $this)
      Returns false if the option is OptionVal.None, true otherwise.
    • getOrElse$extension

      public final <B, A> B getOrElse$extension(org.apache.pekko.util.OptionVal<A> $this, B default_)
      Returns the option's value if the option is nonempty, otherwise return default.
    • toOption$extension

      public final <A> scala.Option<A> toOption$extension(org.apache.pekko.util.OptionVal<A> $this)
      Convert to scala.Option
    • contains$extension

      public final <B, A> boolean contains$extension(org.apache.pekko.util.OptionVal<A> $this, B it)
    • orNull$extension

      public final <A1, A> A1 orNull$extension(org.apache.pekko.util.OptionVal<A> $this, scala.$less$colon$less<scala.runtime.Null$,A1> ev)
      Returns the option's value if it is nonempty, or null if it is empty.
    • get$extension

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

      public final <A> String toString$extension(org.apache.pekko.util.OptionVal<A> $this)
    • hashCode$extension

      public final <A> int hashCode$extension(org.apache.pekko.util.OptionVal<A> $this)
    • equals$extension

      public final <A> boolean equals$extension(org.apache.pekko.util.OptionVal<A> $this, Object x$1)