| Package | Description |
|---|---|
| com.m3.scalaflavor4j |
| Modifier and Type | Interface and Description |
|---|---|
interface |
F0<R>
Function0 alias |
| Modifier and Type | Class and Description |
|---|---|
class |
RichFunction0<R>
A function of 0 parameter.
|
| Modifier and Type | Method and Description |
|---|---|
R |
ExceptionControl.Catch.apply(Function0<R> block) |
Either<Throwable,R> |
ExceptionControl.Catch.either(Function0<R> block)
Apply this catch logic to the supplied body, mapping the result into
Either[Throwable, T] - Left(exception) if an exception was caught,
Right(T) otherwise.
|
static <R> Future<R> |
ConcurrentOps.future(Function0<R> p)
Evaluates an expression asynchronously, and returns a closure for
retrieving the result.
|
T |
Option.getOrElse(Function0<T> defaultProvider)
Returns the option's value if the option is nonempty, otherwise return
the result of evaluating default.
|
Option<R> |
ExceptionControl.Catch.opt(Function0<R> block)
Apply this catch logic to the supplied body, mapping the result into
Option[T] - None if any exception was caught, Some(T) otherwise.
|
static <A,B> Tuple2<A,B> |
ConcurrentOps.par(Function0<A> xp,
Function0<B> yp)
Evaluates two expressions in parallel.
|
static <A,B> Tuple2<A,B> |
ConcurrentOps.par(Function0<A> xp,
Function0<B> yp)
Evaluates two expressions in parallel.
|
| Constructor and Description |
|---|
RichFunction0(Function0<R> f) |
Copyright © 2015. All rights reserved.