Class

scalaz.syntax

OptionalOps

Related Doc: package syntax

Permalink

final class OptionalOps[F[_], A] extends Ops[F[A]]

Wraps a value self and provides methods related to Optional

Source
OptionalSyntax.scala
Linear Supertypes
Ops[F[A]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptionalOps
  2. Ops
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class Conditional[X] extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ?[X](some: ⇒ X): Conditional[X]

    Permalink

    Returns some if this context is defined, otherwise none.

  5. implicit val F: Optional[F]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getOrElse(default: ⇒ A): A

    Permalink

    Returns the value within the context if defined or else the value of default.

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def isDefined: Boolean

    Permalink

    Returns true if a value is defined within the context.

  15. def isEmpty: Boolean

    Permalink

    Returns true if no value is defined within the context.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def nonEmpty: Boolean

    Permalink

    Returns true if a value is defined within the context.

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def orElse(alternative: ⇒ F[A]): F[A]

    Permalink

    Returns this context if defined or else the value of the alternative.

  22. final def pextract[B]: \/[F[B], A]

    Permalink

    If the value has an a, return it; otherwise it must be universally quantified.

  23. val self: F[A]

    Permalink
    Definition Classes
    OptionalOpsOps
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toMaybe: Maybe[A]

    Permalink

    Returns this context converted to the Maybe context.

  26. def toOption: Option[A]

    Permalink

    Returns this context converted to the Option context.

  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ops[F[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped