Package akka.util
Class OptionVal$
- java.lang.Object
-
- akka.util.OptionVal$
-
public class OptionVal$ extends java.lang.Object
INTERNAL API
-
-
Field Summary
Fields Modifier and Type Field Description static OptionVal$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description OptionVal$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A> akka.util.OptionVal<A>
apply(A x)
<B,A>
booleancontains$extension(akka.util.OptionVal<A> $this, B it)
<A> boolean
equals$extension(akka.util.OptionVal<A> $this, java.lang.Object x$1)
<A> A
get$extension(akka.util.OptionVal<A> $this)
Returns the option's value.<B,A>
BgetOrElse$extension(akka.util.OptionVal<A> $this, B default_)
Returns the option's value if the option is nonempty, otherwise returndefault
.<A> int
hashCode$extension(akka.util.OptionVal<A> $this)
<A> boolean
isDefined$extension(akka.util.OptionVal<A> $this)
Returns false if the option isOptionVal.None
, true otherwise.<A> boolean
isEmpty$extension(akka.util.OptionVal<A> $this)
Returns true if the option isOptionVal.None
, false otherwise.<A> akka.util.OptionVal<A>
none()
akka.util.OptionVal<scala.runtime.Null$>
None()
Represents non-existent values,null
values.<A1,A>
A1orNull$extension(akka.util.OptionVal<A> $this, scala.$less$colon$less<scala.runtime.Null$,A1> ev)
Returns the option's value if it is nonempty, ornull
if it is empty.<A> scala.Option<A>
toOption$extension(akka.util.OptionVal<A> $this)
Convert toscala.Option
<A> java.lang.String
toString$extension(akka.util.OptionVal<A> $this)
-
-
-
Field Detail
-
MODULE$
public static final OptionVal$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public <A> akka.util.OptionVal<A> apply(A x)
-
none
public <A> akka.util.OptionVal<A> none()
-
None
public akka.util.OptionVal<scala.runtime.Null$> None()
Represents non-existent values,null
values.
-
isEmpty$extension
public final <A> boolean isEmpty$extension(akka.util.OptionVal<A> $this)
Returns true if the option isOptionVal.None
, false otherwise.
-
isDefined$extension
public final <A> boolean isDefined$extension(akka.util.OptionVal<A> $this)
Returns false if the option isOptionVal.None
, true otherwise.
-
getOrElse$extension
public final <B,A> B getOrElse$extension(akka.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(akka.util.OptionVal<A> $this)
Convert toscala.Option
-
contains$extension
public final <B,A> boolean contains$extension(akka.util.OptionVal<A> $this, B it)
-
orNull$extension
public final <A1,A> A1 orNull$extension(akka.util.OptionVal<A> $this, scala.$less$colon$less<scala.runtime.Null$,A1> ev)
Returns the option's value if it is nonempty, ornull
if it is empty.
-
get$extension
public final <A> A get$extension(akka.util.OptionVal<A> $this)
Returns the option's value.- Throws:
java.util.NoSuchElementException
- if the option is empty.
-
toString$extension
public final <A> java.lang.String toString$extension(akka.util.OptionVal<A> $this)
-
hashCode$extension
public final <A> int hashCode$extension(akka.util.OptionVal<A> $this)
-
equals$extension
public final <A> boolean equals$extension(akka.util.OptionVal<A> $this, java.lang.Object x$1)
-
-