Packages

c

scalaz.syntax

OptionalOps

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ?[X](some: ⇒ X): Conditional[X]

    Returns some if this context is defined, otherwise none.

  5. implicit val F: Optional[F]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getOrElse(default: ⇒ A): A

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

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def isDefined: Boolean

    Returns true if a value is defined within the context.

  15. def isEmpty: Boolean

    Returns true if no value is defined within the context.

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def nonEmpty: Boolean

    Returns true if a value is defined within the context.

  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def orElse(alternative: ⇒ F[A]): F[A]

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

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

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

  23. val self: F[A]
    Definition Classes
    OptionalOpsOps
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toMaybe: Maybe[A]

    Returns this context converted to the Maybe context.

  26. def toOption: Option[A]

    Returns this context converted to the Option context.

  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Ops[F[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped