Packages

implicit class ResultOps[T] extends AnyRef

Implicit conversion for Result[T] with some extra methods

T

Type of result value

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResultOps(value: Result[T])

    value

    result value

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def combine[R, S](otherValue: Result[R])(f: (T, R) ⇒ S): Result[S]

    Combines results and their log messages

    Combines results and their log messages

    R

    Type of other result

    S

    Type of combined result

    otherValue

    other result to combine with

    f

    Function to combine two results

    returns

    Combined result: either a combined value or a combined error log messages

  7. def combineT2[R1, R2, S](r1: Result[R1], r2: Result[R2])(f: (T, R1, R2) ⇒ S): Result[S]

    Combines this result with two other results provided with function to combine values.

    Combines this result with two other results provided with function to combine values.

    R1

    Type of Result 1

    R2

    Type of Result 2

    S

    Type of combined result

    r1

    Result 1 to combine with

    r2

    Result 2 to combine with

    f

    Function to combine results values

    returns

    Combined result: either a combined value or a combined error log messages

  8. def combineT3[R1, R2, R3, S](r1: Result[R1], r2: Result[R2], r3: Result[R3])(f: (T, R1, R2, R3) ⇒ S): Result[S]

    Combines this result with three other results provided with function to combine values.

    Combines this result with three other results provided with function to combine values.

    R1

    Type of Result 1

    R2

    Type of Result 2

    R3

    Type of Result 3

    S

    Type of combined result

    r1

    Result 1 to combine with

    r2

    Result 2 to combine with

    r3

    Result 3 to combine with

    f

    Function to combine results values

    returns

    Combined result: either a combined value or a combined error log messages

  9. def combineT4[R1, R2, R3, R4, S](r1: Result[R1], r2: Result[R2], r3: Result[R3], r4: Result[R4])(f: (T, R1, R2, R3, R4) ⇒ S): Result[S]

    Combines this result with three other results provided with function to combine values.

    Combines this result with three other results provided with function to combine values.

    R1

    Type of Result 1

    R2

    Type of Result 2

    R3

    Type of Result 3

    R4

    Type of Result 4

    S

    Type of combined result

    r1

    Result 1 to combine with

    r2

    Result 2 to combine with

    r3

    Result 3 to combine with

    r4

    Result 4 to combine with

    f

    Function to combine results values

    returns

    Combined result: either a combined value or a combined error log messages

  10. def combineT5[R1, R2, R3, R4, R5, S](r1: Result[R1], r2: Result[R2], r3: Result[R3], r4: Result[R4], r5: Result[R5])(f: (T, R1, R2, R3, R4, R5) ⇒ S): Result[S]
  11. def combineT6[R1, R2, R3, R4, R5, R6, S](r1: Result[R1], r2: Result[R2], r3: Result[R3], r4: Result[R4], r5: Result[R5], r6: Result[R6])(f: (T, R1, R2, R3, R4, R5, R6) ⇒ S): Result[S]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def mapValue[R](f: (T) ⇒ R): Result[R]

    Maps value in case of a valid result.

    Maps value in case of a valid result.

    R

    Type of the new result

    f

    Function to transform a value

    returns

    New result: either a mapped value or an unchanged log messages.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def tap(f: (T) ⇒ Unit, g: (Vector[String]) ⇒ Unit = _ => ()): Result[T]

    Applies functions with side effects to this result.

    Applies functions with side effects to this result.

    f

    Function with side effects to apply to this result if it contains value

    g

    Function with side effects to apply to this result if it contains errors messages.

    returns

    Returns the same result if function execution was successful. Otherwise returns log messages with errors.

  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def union[R1, R2, R3, R4, R5, R6](r1: Result[R1], r2: Result[R2], r3: Result[R3], r4: Result[R4], r5: Result[R5], r6: Result[R6]): Result[(T, R1, R2, R3, R4, R5, R6)]
  26. def union[R1, R2, R3, R4, R5](r1: Result[R1], r2: Result[R2], r3: Result[R3], r4: Result[R4], r5: Result[R5]): Result[(T, R1, R2, R3, R4, R5)]
  27. def union[R1, R2, R3, R4](r1: Result[R1], r2: Result[R2], r3: Result[R3], r4: Result[R4]): Result[(T, R1, R2, R3, R4)]
  28. def union[R1, R2, R3](r1: Result[R1], r2: Result[R2], r3: Result[R3]): Result[(T, R1, R2, R3)]
  29. def union[R1, R2](r1: Result[R1], r2: Result[R2]): Result[(T, R1, R2)]
  30. def union[R](r: Result[R]): Result[(T, R)]
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped