Class

morphir.sdk.Maybe

Maybe

Related Doc: package Maybe

Permalink

sealed abstract class Maybe[+A] extends MaybeLike[A]

Self Type
Maybe[A]
Linear Supertypes
MaybeLike[A], Serializable, Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Maybe
  2. MaybeLike
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class WithFilter extends AnyRef

    Permalink

    We need a whole WithFilter class to honor the "doesn't create a new collection" contract even though it seems unlikely to matter much in a collection with max size 1.

Abstract Value Members

  1. abstract def asOption: Option[A]

    Permalink
  2. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  3. abstract def flatMap[B](fn: (A) ⇒ Maybe[B]): Maybe[B]

    Permalink
  4. abstract def get: A

    Permalink
  5. abstract def map[B](fn: (A) ⇒ B): Maybe[B]

    Permalink
  6. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  7. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product

Concrete 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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def collect[B](pf: PartialFunction[A, B]): Maybe[B]

    Permalink
    Annotations
    @inline()
  7. final def contains[A1 >: A](elem: A1): Boolean

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def exists(p: (A) ⇒ Boolean): Boolean

    Permalink
    Annotations
    @inline()
  11. final def filter(p: (A) ⇒ Boolean): Maybe[A]

    Permalink
    Annotations
    @inline()
  12. final def filterNot(p: (A) ⇒ Boolean): Maybe[A]

    Permalink
    Annotations
    @inline()
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatten[B](implicit ev: <:<[A, Maybe[B]]): Maybe[B]

    Permalink
  15. final def fold[B](ifEmpty: ⇒ B)(f: (A) ⇒ B): B

    Permalink
    Annotations
    @inline()
  16. final def forall(p: (A) ⇒ Boolean): Boolean

    Permalink
    Annotations
    @inline()
  17. final def foreach[U](f: (A) ⇒ U): Unit

    Permalink
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def getOrElse[B >: A](default: ⇒ B): B

    Permalink
    Annotations
    @inline()
  20. def hashCode(): Int

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

    Permalink
  22. def isEmpty: Boolean

    Permalink
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def iterator: Iterator[A]

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def nonEmpty: Boolean

    Permalink
  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. final def orElse[B >: A](alternative: ⇒ Maybe[B]): Maybe[B]

    Permalink
    Annotations
    @inline()
  30. final def orNull[A1 >: A](implicit ev: <:<[Null, A1]): A1

    Permalink
    Annotations
    @SuppressWarnings() @inline()
  31. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  32. def productPrefix: String

    Permalink
    Definition Classes
    Product
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. final def toLeft[X](right: ⇒ X): Either[A, X]

    Permalink
    Annotations
    @inline()
  35. def toList: List[A]

    Permalink
  36. final def toRight[X](left: ⇒ X): Either[X, A]

    Permalink
    Annotations
    @inline()
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. final def unzip[A1, A2](implicit asPair: <:<[A, (A1, A2)]): (Maybe[A1], Maybe[A2])

    Permalink
  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withFilter(fn: (A) ⇒ Boolean): WithFilter

    Permalink
  43. final def zip[A1 >: A, B](that: Maybe[B]): Maybe[(A1, B)]

    Permalink

Inherited from MaybeLike[A]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped