RichOption

fm.common.rich.RichOption
final class RichOption[A](val self: Option[A]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def asJava: Optional[A]

Implements asJava method similar to collection.JavaConverters._ for scala Option class

Implements asJava method similar to collection.JavaConverters._ for scala Option class

Attributes

def transform[B](implicit ctx: ExecutionContext, ev: A <:< Future[B]): Future[Option[B]]

Converts an Option[Future[B]] to a Future[Option[B]]

Converts an Option[Future[B]] to a Future[Option[B]]

Attributes

def tryMap[B](f: A => B): Option[B]

Essentially flatMap{ a: A => Try{ f(a) }.toOption }

Essentially flatMap{ a: A => Try{ f(a) }.toOption }

Attributes

Concrete fields

val self: Option[A]