Adding tests for recover and mapTo, adding API for creating manifests from Java and doccing things
This commit is contained in:
parent
99bf0aa87f
commit
5ddf1afb20
3 changed files with 133 additions and 9 deletions
|
|
@ -119,3 +119,10 @@ object Option {
|
|||
implicit def java2ScalaOption[A](o: Option[A]): scala.Option[A] = o.asScala
|
||||
implicit def scala2JavaOption[A](o: scala.Option[A]): Option[A] = if (o.isDefined) some(o.get) else none
|
||||
}
|
||||
|
||||
object util {
|
||||
/**
|
||||
* Given a Class returns a Scala Manifest of that Class
|
||||
*/
|
||||
def manifest[T](clazz: Class[T]): Manifest[T] = Manifest.classType(clazz)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue