Packages

final case class Good[+A](value: A) extends EMon[A] with Product with Serializable

The Good sub class of EMon[+A]. This corresponds, but is not functionally equivalent to an Either[List[String], +A] based Right[Refs[String], +A].

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Good
  2. Serializable
  3. Product
  4. Equals
  5. EMon
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Good(value: A)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def biMap[L2, R2](fLeft: (Strings) => L2, fRight: (A) => R2): Either[L2, R2]

    These are implemented in the base traits GoodBase[+A] and BadBase[+A] as Either[+A, +B] boxes all value classes.

    These are implemented in the base traits GoodBase[+A] and BadBase[+A] as Either[+A, +B] boxes all value classes.

    Definition Classes
    GoodEMon
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def errs: Strings
    Definition Classes
    GoodEMon
  9. def flatMap[B](f: (A) => EMon[B]): EMon[B]
    Definition Classes
    GoodEMon
  10. def flatMap2[B1, B2](f: (A) => EMon2[B1, B2]): EMon2[B1, B2]
    Definition Classes
    GoodEMon
  11. def flatMap2ToOption[A2, B](e2: EMon[A2], f: (A, A2) => B): Option[B]
    Definition Classes
    GoodEMon
  12. def flatMapToEither[D](f: (A) => Either[Strings, D]): Either[Strings, D]

    These are implemented in the base traits GoodBase[+A] and BadBase[+A] as Either[+A, +B] boxes all value classes.

    These are implemented in the base traits GoodBase[+A] and BadBase[+A] as Either[+A, +B] boxes all value classes.

    Definition Classes
    GoodEMon
  13. def fld[B](noneValue: => B, fGood: (A) => B): B
    Definition Classes
    GoodEMon
  14. def fold[B](noneValue: => B)(fGood: (A) => B): B
    Definition Classes
    GoodEMon
  15. def foldDo(fGood: (A) => Unit)(fBad: (Strings) => Unit): Unit

    This is just a Unit returning fold, but is preferred because the method is explicit that it is called for effects, rather than to return a value.

    This is just a Unit returning fold, but is preferred because the method is explicit that it is called for effects, rather than to return a value. This method is implemented in the leaf Good classes to avoid boxing.

    Definition Classes
    GoodEMon
  16. def foldErrs[B](fGood: (A) => B)(fBad: (Strings) => B): B

    Fold the EMon of type A into a type of B.

    Fold the EMon of type A into a type of B.

    Definition Classes
    GoodEMon
    Annotations
    @inline()
  17. def forGood(f: (A) => Unit): Unit

    Will perform action if Good.

    Will perform action if Good. Does nothing if Bad.

    Definition Classes
    GoodEMon
  18. def get: A

    Gets the value of Good, throws exception on Bad.

    Gets the value of Good, throws exception on Bad.

    Definition Classes
    GoodEMon
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def getElse(elseValue: A): A

    Gets the value of Good or returns the elseValue parameter if Bad.

    Gets the value of Good or returns the elseValue parameter if Bad. Both Good and Bad should be implemented in the leaf classes to avoid unnecessary boxing of primitive values.

    Definition Classes
    GoodEMon
  21. def isBad: Boolean
    Definition Classes
    GoodEMon
  22. def isGood: Boolean
    Definition Classes
    GoodEMon
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def map[B](f: (A) => B): EMon[B]
    Definition Classes
    GoodEMon
  25. def mapToEither[D](f: (A) => D): Either[Strings, D]

    Maps Good to Right[Strings, D] and Bad to Left[Strings, D].

    Maps Good to Right[Strings, D] and Bad to Left[Strings, D]. These are implemented in the base traits GoodBase[+A] and BadBase[+A] as Either[+A, +B] boxes all value classes.

    Definition Classes
    GoodEMon
  26. def mapToOption[B](f: (A) => B): Option[B]
    Definition Classes
    GoodEMon
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. def productElementNames: Iterator[String]
    Definition Classes
    Product
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toEither: Either[Strings, A]
    Definition Classes
    GoodEMon
  33. val value: A
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from EMon[A]

Inherited from AnyRef

Inherited from Any

Ungrouped