final class OptionalOps[F[_], A] extends Ops[F[A]]
Wraps a value self
and provides methods related to Optional
- Source
- OptionalSyntax.scala
- Alphabetic
- By Inheritance
- OptionalOps
- Ops
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final class Conditional[X] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
?[X](some: ⇒ X): Conditional[X]
Returns
some
if this context is defined, otherwisenone
. - implicit val F: Optional[F]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrElse(default: ⇒ A): A
Returns the value within the context if defined or else the value of
default
. -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isDefined: Boolean
Returns
true
if a value is defined within the context. -
def
isEmpty: Boolean
Returns
true
if no value is defined within the context. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmpty: Boolean
Returns
true
if a value is defined within the context. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
orElse(alternative: ⇒ F[A]): F[A]
Returns
this
context if defined or else the value of thealternative
. -
final
def
pextract[B]: \/[F[B], A]
If the value has an
a
, return it; otherwise it must be universally quantified. -
val
self: F[A]
- Definition Classes
- OptionalOps → Ops
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toMaybe: Maybe[A]
Returns this context converted to the
Maybe
context. -
def
toOption: Option[A]
Returns this context converted to the
Option
context. -
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()