Package akka.util
Class OptionVal$
- java.lang.Object
-
- akka.util.OptionVal$
-
public class OptionVal$ extends java.lang.Object
Represents non-existent values,null
values.
-
-
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> OptionVal<A>
apply(A x)
<B,A>
booleancontains$extension(OptionVal<A> $this, B it)
<A> boolean
equals$extension(OptionVal<A> $this, java.lang.Object x$1)
<A> A
get$extension(OptionVal<A> $this)
Returns the option's value.<B,A>
BgetOrElse$extension(OptionVal<A> $this, B default_)
Returns the option's value if the option is nonempty, otherwise returndefault
.<A> int
hashCode$extension(OptionVal<A> $this)
<A> boolean
isDefined$extension(OptionVal<A> $this)
Returns true if the option isOptionVal.None
, false otherwise.<A> boolean
isEmpty$extension(OptionVal<A> $this)
Returns true if the option isOptionVal.None
, false otherwise.<A> OptionVal<A>
none()
OptionVal<scala.runtime.Null$>
None()
Represents non-existent values,null
values.<A1,A>
A1orNull$extension(OptionVal<A> $this, scala.Predef.$less$colon$less<scala.runtime.Null$,A1> ev)
Returns the option's value if it is nonempty, ornull
if it is empty.<A> java.lang.String
toString$extension(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> OptionVal<A> apply(A x)
-
none
public <A> OptionVal<A> none()
-
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 isOptionVal.None
, false otherwise.- Parameters:
$this
- (undocumented)- Returns:
- (undocumented)
-
isDefined$extension
public final <A> boolean isDefined$extension(OptionVal<A> $this)
Returns true if the option isOptionVal.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 returndefault
.- 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, ornull
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)
-
-