Packages

final case class Value[T](value: T) extends Result[T] with Product with Serializable

Success value case representation

T

type of success value

value

value of type T

Since

0.7.0

Linear Supertypes
Serializable, Product, Equals, Result[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Value
  2. Serializable
  3. Product
  4. Equals
  5. Result
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Value(value: T)

    value

    value of type T

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 asEither: Either[Errors, T]

    Converts a partial result to an scala.Either.

    Converts a partial result to an scala.Either.

    returns

    scala.Right if success, scala.Left containing io.scalaland.chimney.partial.Result.Errors otherwise

    Definition Classes
    Result
    Since

    0.7.0

  5. final def asErrorPathMessageStrings: Iterable[(String, String)]

    Returns (possibly empty) collection of tuples with conventional string representation of path and string representation of error message.

    Returns (possibly empty) collection of tuples with conventional string representation of path and string representation of error message.

    returns

    empty scala.collection.Iterable if success, a sequence of pairs (a path to a failed field, an errors message as java.lang.String

    Definition Classes
    Result
    Since

    0.7.0

  6. def asErrorPathMessages: Iterable[(String, ErrorMessage)]

    Returns (possibly empty) collection of tuples with conventional string representation of path and errors message.

    Returns (possibly empty) collection of tuples with conventional string representation of path and errors message.

    returns

    empty scala.collection.Iterable if success, a sequence of pairs (a path to a failed field, an io.scalaland.chimney.partial.ErrorMessage) otherwise

    Definition Classes
    ValueResult
    Since

    0.7.0

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. final def asOption: Option[T]

    Converts a partial result to an optional value.

    Converts a partial result to an optional value.

    returns

    scala.Some if success, scala.None otherwise

    Definition Classes
    Result
    Since

    0.7.0

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def flatMap[U](f: (T) => Result[U]): Result[U]

    Builds a new result by applying a function to a success value and using result returned by that that function.

    Builds a new result by applying a function to a success value and using result returned by that that function.

    U

    the element type of the returned result

    f

    the function to apply to a success value

    returns

    a new result built from applying a function to a success value and using the result returned by that function

    Definition Classes
    Result
    Since

    0.7.0

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def map[U](f: (T) => U): Result[U]

    Builds a new result by applying a function to a success value.

    Builds a new result by applying a function to a success value.

    U

    the element type of the returned result

    f

    the function to apply to a success value

    returns

    a new result built from applying a function to a success value

    Definition Classes
    Result
    Since

    0.7.0

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def prependErrorPath(pathElement: => PathElement): Value.this.type

    Prepends a path element to all errors represented by this result.

    Prepends a path element to all errors represented by this result.

    pathElement

    path element to be prepended

    returns

    a result with path element prepended to all errors

    Definition Classes
    Result
    Since

    0.7.0

  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. val value: T
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Result[T]

Inherited from AnyRef

Inherited from Any

Ungrouped