io
.
scalajs
.
util
.
Maybe
MaybeEnrichment
Related Doc:
package Maybe
implicit final
class
MaybeEnrichment
[
A
]
extends
AnyVal
Maybe Enrichment
Linear Supertypes
AnyVal
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
MaybeEnrichment
AnyVal
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
MaybeEnrichment
(
aValue:
Maybe
[
A
]
)
aValue
the given Maybe-wrapped value
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
val
aValue
:
Maybe
[
A
]
the given Maybe-wrapped value
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
filter
(
p: (
A
) ⇒
Boolean
)
:
Maybe
[
A
]
Annotations
@inline
()
def
filterNot
(
p: (
A
) ⇒
Boolean
)
:
Maybe
[
A
]
Annotations
@inline
()
def
flatMap
[
B
]
(
p: (
A
) ⇒
Maybe
[
B
]
)
:
Maybe
[
B
]
Annotations
@inline
()
def
forall
(
p: (
A
) ⇒
Boolean
)
:
Boolean
Annotations
@inline
()
def
foreach
[
U
]
(
p: (
A
) ⇒
U
)
:
Unit
Annotations
@inline
()
def
get
:
A
Annotations
@inline
()
def
getClass
()
:
Class
[_ <:
AnyVal
]
Definition Classes
AnyVal → Any
def
getOrElse
[
B >:
A
]
(
default: ⇒
B
)
:
B
Annotations
@inline
()
def
isDefined
:
Boolean
Annotations
@inline
()
def
isEmpty
:
Boolean
Annotations
@inline
()
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
map
[
B
]
(
p: (
A
) ⇒
B
)
:
Maybe
[
B
]
Annotations
@inline
()
def
nonEmpty
:
Boolean
Annotations
@inline
()
def
orNull
[
B >:
A
]
(
implicit
ev:
<:<
[
Null
,
B
]
)
:
B
Annotations
@inline
()
def
toLeft
[
B
]
(
right: ⇒
B
)
:
Either
[
A
,
B
]
Annotations
@inline
()
def
toOption
:
Option
[
A
]
Annotations
@inline
()
def
toRight
[
B
]
(
left: ⇒
B
)
:
Either
[
B
,
A
]
Annotations
@inline
()
def
toString
()
:
String
Definition Classes
Any
def
toUndefOr
:
UndefOr
[
A
]
Annotations
@inline
()
Inherited from
AnyVal
Inherited from
Any
Ungrouped
Maybe Enrichment