Package monads
Class Test
- java.lang.Object
-
- monads.Test
-
public class Test extends java.lang.Object
Monadic futures for Java. http://zeroturnaround.com/rebellabs/monadic-futures-in-java8/
-
-
Constructor Summary
Constructors Constructor Description Test()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
$(IFuture<T> fut)
static <V,R>
IFuture<R>$(IFuture<V> orig, IResultCommand<IFuture<R>,V> function)
static <V,R>
IIntermediateFuture<R>$$(IIntermediateFuture<V> orig, java.util.function.Function<V,IFuture<R>> function)
static <R,E>
IIntermediateFuture<R>$$$(IIntermediateFuture<E> orig, IResultCommand<IIntermediateFuture<R>,E> function)
Implements async loop and applies a an async multi-function to each element.static void
abc(java.lang.String a)
static IIntermediateFuture<java.lang.String>
getABC()
static IFuture<java.lang.String>
getD(java.lang.String arg)
static IIntermediateFuture<java.lang.String>
getE(java.lang.String arg)
static IFuture<java.lang.String>
getHello()
static IFuture<java.lang.String>
getHelloWorld()
static IFuture<java.lang.String>
getWorld(java.lang.String hello)
static void
main(java.lang.String[] args)
static <V,R>
voidtest(IFunctionalResultListener<R> function)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
abc
public static void abc(java.lang.String a)
-
getHelloWorld
public static IFuture<java.lang.String> getHelloWorld()
-
getHello
public static IFuture<java.lang.String> getHello()
-
getWorld
public static IFuture<java.lang.String> getWorld(java.lang.String hello)
-
getABC
public static IIntermediateFuture<java.lang.String> getABC()
-
getD
public static IFuture<java.lang.String> getD(java.lang.String arg)
-
getE
public static IIntermediateFuture<java.lang.String> getE(java.lang.String arg)
-
test
public static <V,R> void test(IFunctionalResultListener<R> function)
-
$
public static <V,R> IFuture<R> $(IFuture<V> orig, IResultCommand<IFuture<R>,V> function)
-
$$
public static <V,R> IIntermediateFuture<R> $$(IIntermediateFuture<V> orig, java.util.function.Function<V,IFuture<R>> function)
-
$$$
public static <R,E> IIntermediateFuture<R> $$$(IIntermediateFuture<E> orig, IResultCommand<IIntermediateFuture<R>,E> function)
Implements async loop and applies a an async multi-function to each element.- Parameters:
function
- The function.- Returns:
- True result intermediate future.
-
$
public static <T> T $(IFuture<T> fut)
-
-