public class F
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
F.Either<L,R>
Represents a value of one of two possible types (a disjoint union)
|
static interface |
F.Function3<A,B,C,R>
A Function with 3 arguments.
|
static class |
F.Promise<A>
Deprecated.
Use the JDK8
CompletionStage instead. When migrating to CompletionStage, Promise implements
CompletionStage, so it may be easier to first migrate all the existing method calls on the promise,
such as map/flatMap, which are also deprecated but include migration instructions in the deprecation
message. |
static class |
F.PromiseTimeoutException
Exception thrown when an operation times out.
|
static class |
F.RedeemablePromise<A>
Deprecated.
Use
CompletableFuture instead. |
static class |
F.Tuple<A,B>
A pair - a tuple of the types
A and B . |
static class |
F.Tuple3<A,B,C>
A tuple of A,B,C
|
static class |
F.Tuple4<A,B,C,D>
A tuple of A,B,C,D
|
static class |
F.Tuple5<A,B,C,D,E>
A tuple of A,B,C,D,E
|
Constructor and Description |
---|
F() |
Modifier and Type | Method and Description |
---|---|
static <A,B> F.Tuple<A,B> |
Tuple(A a,
B b)
Constructs a tuple of A,B
|
static <A,B,C> F.Tuple3<A,B,C> |
Tuple3(A a,
B b,
C c)
Constructs a tuple of A,B,C
|
static <A,B,C,D> F.Tuple4<A,B,C,D> |
Tuple4(A a,
B b,
C c,
D d)
Constructs a tuple of A,B,C,D
|
static <A,B,C,D,E> |
Tuple5(A a,
B b,
C c,
D d,
E e)
Constructs a tuple of A,B,C,D,E
|
public static <A,B> F.Tuple<A,B> Tuple(A a, B b)
a
- The a valueb
- The b valuepublic static <A,B,C> F.Tuple3<A,B,C> Tuple3(A a, B b, C c)
a
- The a valueb
- The b valuec
- The c valuepublic static <A,B,C,D> F.Tuple4<A,B,C,D> Tuple4(A a, B b, C c, D d)
a
- The a valueb
- The b valuec
- The c valued
- The d valuepublic static <A,B,C,D,E> F.Tuple5<A,B,C,D,E> Tuple5(A a, B b, C c, D d, E e)
a
- The a valueb
- The b valuec
- The c valued
- The d valuee
- The e value