Class

scalaz.Maybe

Empty

Related Doc: package Maybe

Permalink

final case class Empty[A]() extends Maybe[A] with Product with Serializable

Source
Maybe.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Maybe[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Empty
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Maybe
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Empty()

    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 <\/[B](b: ⇒ B): \/[A, B]

    Permalink

    alias for toLeft

    alias for toLeft

    Definition Classes
    Maybe
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def \/>[B](b: ⇒ B): \/[B, A]

    Permalink

    alias for toRight

    alias for toRight

    Definition Classes
    Maybe
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. final def cata[B](f: (A) ⇒ B, b: ⇒ B): B

    Permalink

    Catamorphism.

    Catamorphism. Run the given function on the underlying value if present, otherwise return the provided fallback value

    Definition Classes
    Maybe
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def cobind[B](f: (Maybe[A]) ⇒ B): Maybe[B]

    Permalink
    Definition Classes
    Maybe
  10. final def cojoin: Maybe[Maybe[A]]

    Permalink
    Definition Classes
    Maybe
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. final def exists(f: (A) ⇒ Boolean): Boolean

    Permalink

    Return true if this is a Maybe.Just and the underlying value satisfies the provided predicate

    Return true if this is a Maybe.Just and the underlying value satisfies the provided predicate

    Definition Classes
    Maybe
  13. final def filter(f: (A) ⇒ Boolean): Maybe[A]

    Permalink
    Definition Classes
    Maybe
  14. final def filterNot(f: (A) ⇒ Boolean): Maybe[A]

    Permalink
    Definition Classes
    Maybe
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def first: FirstMaybe[A]

    Permalink

    Tag with Tags.First

    Tag with Tags.First

    Definition Classes
    Maybe
  17. final def flatMap[B](f: (A) ⇒ Maybe[B]): Maybe[B]

    Permalink
    Definition Classes
    Maybe
  18. final def forall(f: (A) ⇒ Boolean): Boolean

    Permalink

    Return true if this is a Maybe.Empty or if this is a Maybe.Just and the underlying value satisfies the provided predicate

    Return true if this is a Maybe.Empty or if this is a Maybe.Just and the underlying value satisfies the provided predicate

    Definition Classes
    Maybe
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def getOrElse(a: ⇒ A): A

    Permalink

    Return the underlying value if present, otherwise the provided fallback value

    Return the underlying value if present, otherwise the provided fallback value

    Definition Classes
    Maybe
  21. final def getOrElseF[F[_]](fa: ⇒ F[A])(implicit arg0: Applicative[F]): F[A]

    Permalink
    Definition Classes
    Maybe
  22. final def isEmpty: Boolean

    Permalink

    True if no underlying value is present

    True if no underlying value is present

    Definition Classes
    Maybe
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def isJust: Boolean

    Permalink

    True if an underlying value is present

    True if an underlying value is present

    Definition Classes
    Maybe
  25. final def last: LastMaybe[A]

    Permalink

    Tag with Tags.Last

    Tag with Tags.Last

    Definition Classes
    Maybe
  26. final def map[B](f: (A) ⇒ B): Maybe[B]

    Permalink
    Definition Classes
    Maybe
  27. final def max: MaxMaybe[A]

    Permalink

    Tag with Tags.Max

    Tag with Tags.Max

    Definition Classes
    Maybe
  28. final def min: MinMaybe[A]

    Permalink

    Tag with Tags.Min

    Tag with Tags.Min

    Definition Classes
    Maybe
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  32. final def orElse(oa: ⇒ Maybe[A]): Maybe[A]

    Permalink

    Return this instance if it is a Maybe.Just, otherwise the provided fallback

    Return this instance if it is a Maybe.Just, otherwise the provided fallback

    Definition Classes
    Maybe
  33. final def orEmpty[F[_]](implicit F: Applicative[F], G: PlusEmpty[F]): F[A]

    Permalink

    Return the underlying value wrapped in type F if present, otherwise the empty value for type F

    Return the underlying value wrapped in type F if present, otherwise the empty value for type F

    Definition Classes
    Maybe
  34. final def orZero(implicit F: Monoid[A]): A

    Permalink

    Return the underlying value if present, otherwise the monoid zero

    Return the underlying value if present, otherwise the monoid zero

    Definition Classes
    Maybe
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. final def toFailure[B](b: ⇒ B): Validation[A, B]

    Permalink

    Turn the underlying value into a failure validation if present, otherwise return a success validation with the provided fallback value

    Turn the underlying value into a failure validation if present, otherwise return a success validation with the provided fallback value

    Definition Classes
    Maybe
  37. final def toLeft[B](b: ⇒ B): \/[A, B]

    Permalink

    Turn the underlying value into a left disjunction if present, otherwise return a right disjunction with the provided fallback value

    Turn the underlying value into a left disjunction if present, otherwise return a right disjunction with the provided fallback value

    Definition Classes
    Maybe
  38. final def toOption: Option[A]

    Permalink

    Convert to a standard library Option

    Convert to a standard library Option

    Definition Classes
    Maybe
  39. final def toRight[B](b: ⇒ B): \/[B, A]

    Permalink

    Turn the underlying value into a right disjunction if present, otherwise return a left disjunction with the provided fallback value

    Turn the underlying value into a right disjunction if present, otherwise return a left disjunction with the provided fallback value

    Definition Classes
    Maybe
  40. final def toSuccess[B](b: ⇒ B): Validation[B, A]

    Permalink

    Turn the underlying value into a success validation if present, otherwise return a failure validation with the provided fallback value

    Turn the underlying value into a success validation if present, otherwise return a failure validation with the provided fallback value

    Definition Classes
    Maybe
  41. final def unary_~(implicit z: Monoid[A]): A

    Permalink

    alias for orZero

    alias for orZero

    Definition Classes
    Maybe
  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def zip[B](fb: Maybe[B]): Maybe[(A, B)]

    Permalink
    Definition Classes
    Maybe
  46. final def zipWith[B, C](fb: Maybe[B])(f: (A, B) ⇒ C): Maybe[C]

    Permalink
    Definition Classes
    Maybe
  47. final def |(a: ⇒ A): A

    Permalink

    alias for getOrElse

    alias for getOrElse

    Definition Classes
    Maybe

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Maybe[A]

Inherited from AnyRef

Inherited from Any

Ungrouped