trait IsomorphismOptional[F[_], G[_]] extends Optional[F]
- Source
- Optional.scala
- Alphabetic
- By Inheritance
- IsomorphismOptional
- Optional
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- implicit abstract def G: Optional[G]
- abstract def iso: Isomorphism.<~>[F, G]
Concrete 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 ?[A, X](fa: F[A])(some: => X, none: => X): X
Returns
some
if this context is defined, otherwisenone
.Returns
some
if this context is defined, otherwisenone
.- Definition Classes
- Optional
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getOrElse[A](fa: F[A])(default: => A): A
Returns the value within the context if defined or else the value of
default
.Returns the value within the context if defined or else the value of
default
.- Definition Classes
- Optional
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isDefined[A](fa: F[A]): Boolean
Returns
true
if a value is defined within the context.Returns
true
if a value is defined within the context.- Definition Classes
- Optional
- final def isEmpty[A](fa: F[A]): Boolean
Returns
true
if no value is defined within the context.Returns
true
if no value is defined within the context.- Definition Classes
- Optional
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def nonEmpty[A](fa: F[A]): Boolean
Returns
true
if a value is defined within the context.Returns
true
if a value is defined within the context. This is an alias forisDefined
.- Definition Classes
- Optional
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val optionalSyntax: OptionalSyntax[F]
- Definition Classes
- Optional
- def orElse[A](fa: F[A])(alternative: => F[A]): F[A]
Returns given context if it is defined or else the value of the
alternative
.Returns given context if it is defined or else the value of the
alternative
.- Definition Classes
- Optional
- def pextract[B, A](fa: F[A]): \/[F[B], A]
If
fa
has ana
, return it; otherwise it must be universally quantified.If
fa
has ana
, return it; otherwise it must be universally quantified.- Definition Classes
- IsomorphismOptional → Optional
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toMaybe[A](fa: F[A]): Maybe[A]
Returns this context converted to the
Maybe
context.Returns this context converted to the
Maybe
context.- Definition Classes
- Optional
- def toOption[A](fa: F[A]): Option[A]
Returns this context converted to the
Option
context.Returns this context converted to the
Option
context.- Definition Classes
- Optional
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()