Packages

final case class Just[A](a: A) extends Maybe[A] with Product with Serializable

Source
Maybe.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Just
  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 Just(a: A)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def <\/[B](b: ⇒ B): \/[A, B]

    alias for toLeft

    alias for toLeft

    Definition Classes
    Maybe
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def \/>[B](b: ⇒ B): \/[B, A]

    alias for toRight

    alias for toRight

    Definition Classes
    Maybe
  6. val a: A
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. final def cata[B](f: (A) ⇒ B, b: ⇒ B): B

    Catamorphism.

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

    Definition Classes
    Maybe
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def cobind[B](f: (Maybe[A]) ⇒ B): Maybe[B]
    Definition Classes
    Maybe
  11. final def cojoin: Maybe[Maybe[A]]
    Definition Classes
    Maybe
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def exists(f: (A) ⇒ Boolean): Boolean

    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
  14. final def filter(f: (A) ⇒ Boolean): Maybe[A]
    Definition Classes
    Maybe
  15. final def filterNot(f: (A) ⇒ Boolean): Maybe[A]
    Definition Classes
    Maybe
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def first: FirstMaybe[A]

    Tag with Tags.First

    Tag with Tags.First

    Definition Classes
    Maybe
  18. final def flatMap[B](f: (A) ⇒ Maybe[B]): Maybe[B]
    Definition Classes
    Maybe
  19. final def forall(f: (A) ⇒ Boolean): Boolean

    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
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def getOrElse(a: ⇒ A): A

    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
  22. final def getOrElseF[F[_]](fa: ⇒ F[A])(implicit arg0: Applicative[F]): F[A]
    Definition Classes
    Maybe
  23. final def isEmpty: Boolean

    True if no underlying value is present

    True if no underlying value is present

    Definition Classes
    Maybe
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def isJust: Boolean

    True if an underlying value is present

    True if an underlying value is present

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

    Tag with Tags.Last

    Tag with Tags.Last

    Definition Classes
    Maybe
  27. final def map[B](f: (A) ⇒ B): Maybe[B]
    Definition Classes
    Maybe
  28. final def max: MaxMaybe[A]

    Tag with Tags.Max

    Tag with Tags.Max

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

    Tag with Tags.Min

    Tag with Tags.Min

    Definition Classes
    Maybe
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def orElse(oa: ⇒ Maybe[A]): Maybe[A]

    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
  34. final def orEmpty[F[_]](implicit F: Applicative[F], G: PlusEmpty[F]): F[A]

    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
  35. final def orError[F[_], E](e: E)(implicit F: MonadError[F, E]): F[A]
    Definition Classes
    Maybe
  36. final def orZero(implicit F: Monoid[A]): A

    Return the underlying value if present, otherwise the monoid zero

    Return the underlying value if present, otherwise the monoid zero

    Definition Classes
    Maybe
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. final def toFailure[B](b: ⇒ B): Validation[A, B]

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

    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
  40. final def toOption: Option[A]

    Convert to a standard library Option

    Convert to a standard library Option

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

    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
  42. final def toSuccess[B](b: ⇒ B): Validation[B, A]

    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
  43. final def unary_~(implicit z: Monoid[A]): A

    alias for orZero

    alias for orZero

    Definition Classes
    Maybe
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  47. final def zip[B](fb: Maybe[B]): Maybe[(A, B)]
    Definition Classes
    Maybe
  48. final def zipWith[B, C](fb: Maybe[B])(f: (A, B) ⇒ C): Maybe[C]
    Definition Classes
    Maybe
  49. final def |(a: ⇒ A): A

    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