implicit class ResultOps[T] extends AnyRef
Implicit conversion for Result[T] with some extra methods
- T
Type of result value
- Alphabetic
- By Inheritance
- ResultOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
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
-
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
-
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
- 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]
- 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]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- 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)]
- 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)]
- def union[R1, R2, R3, R4](r1: Result[R1], r2: Result[R2], r3: Result[R3], r4: Result[R4]): Result[(T, R1, R2, R3, R4)]
- def union[R1, R2, R3](r1: Result[R1], r2: Result[R2], r3: Result[R3]): Result[(T, R1, R2, R3)]
- def union[R1, R2](r1: Result[R1], r2: Result[R2]): Result[(T, R1, R2)]
- def union[R](r: Result[R]): Result[(T, R)]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()