object TryCompanionOps
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TryCompanionOps
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.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
-
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()
-
def
sequence[A, M[X] <: TraversableOnce[X]](in: M[commons.Try[A]])(implicit cbf: CanBuildFrom[M[commons.Try[A]], A, M[A]]): commons.Try[M[A]]
Simple version of
TryOps.traverse
.Simple version of
TryOps.traverse
. Transforms aTraversableOnce[Try[A]]
into aTry[TraversableOnce[A]]
. Useful for reducing manyTry
s into a singleTry
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
traverse[A, B, M[X] <: TraversableOnce[X]](in: M[A])(fn: (A) ⇒ commons.Try[B])(implicit cbf: CanBuildFrom[M[A], B, M[B]]): commons.Try[M[B]]
Transforms a
TraversableOnce[A]
into aTry[TraversableOnce[B]]
using the provided functionA => Try[B]
.Transforms a
TraversableOnce[A]
into aTry[TraversableOnce[B]]
using the provided functionA => Try[B]
. For example, to apply a function to all items of a list:val myTryList = TryOps.traverse(myList)(x => Try(myFunc(x)))
-
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
- @native() @throws( ... )