Package org.apache.pekko.util
Class OptionVal$
java.lang.Object
org.apache.pekko.util.OptionVal$
INTERNAL API
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OptionVal$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<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> booleanequals$extension(org.apache.pekko.util.OptionVal<A> $this, Object x$1) final <A> Aget$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 returndefault.final <A> inthashCode$extension(org.apache.pekko.util.OptionVal<A> $this) final <A> booleanisDefined$extension(org.apache.pekko.util.OptionVal<A> $this) Returnsfalseif the option isOptionVal.None,trueotherwise.final <A> booleanisEmpty$extension(org.apache.pekko.util.OptionVal<A> $this) Returnstrueif the option isOptionVal.None,falseotherwise.<A> org.apache.pekko.util.OptionVal<A>none()org.apache.pekko.util.OptionVal<scala.runtime.Null$>None()Represents non-existent values,nullvalues.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, ornullif it is empty.final <A> scala.Option<A>toOption$extension(org.apache.pekko.util.OptionVal<A> $this) Convert toscala.Optionfinal <A> StringtoString$extension(org.apache.pekko.util.OptionVal<A> $this)
-
Field Details
-
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,nullvalues. -
isEmpty$extension
public final <A> boolean isEmpty$extension(org.apache.pekko.util.OptionVal<A> $this) Returnstrueif the option isOptionVal.None,falseotherwise. -
isDefined$extension
public final <A> boolean isDefined$extension(org.apache.pekko.util.OptionVal<A> $this) Returnsfalseif the option isOptionVal.None,trueotherwise. -
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 returndefault. -
toOption$extension
public final <A> scala.Option<A> toOption$extension(org.apache.pekko.util.OptionVal<A> $this) Convert toscala.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, ornullif 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
-
hashCode$extension
public final <A> int hashCode$extension(org.apache.pekko.util.OptionVal<A> $this) -
equals$extension
-