Package play.libs
Class F
- Object
-
- play.libs.F
-
public class F extends Object
Defines a set of functional programming style helpers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classF.Either<L,R>Represents a value of one of two possible types (a disjoint union)static interfaceF.Function3<A,B,C,R>A Function with 3 arguments.static interfaceF.Function4<A,B,C,D,R>A Function with 4 arguments.static classF.LazySupplier<T>static classF.PromiseTimeoutExceptionException thrown when an operation times out.static classF.Tuple<A,B>A pair - a tuple of the typesAandB.static classF.Tuple3<A,B,C>A tuple of A,B,Cstatic classF.Tuple4<A,B,C,D>A tuple of A,B,C,Dstatic classF.Tuple5<A,B,C,D,E>A tuple of A,B,C,D,E
-
Constructor Summary
Constructors Constructor Description F()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A,B>
F.Tuple<A,B>Tuple(A a, B b)Constructs a tuple of A,Bstatic <A,B,C>
F.Tuple3<A,B,C>Tuple3(A a, B b, C c)Constructs a tuple of A,B,Cstatic <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,Dstatic <A,B,C,D,E>
F.Tuple5<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
-
-
-
Method Detail
-
Tuple
public static <A,B> F.Tuple<A,B> Tuple(A a, B b)
Constructs a tuple of A,B- Type Parameters:
A- a's typeB- b's type- Parameters:
a- The a valueb- The b value- Returns:
- The tuple
-
Tuple3
public static <A,B,C> F.Tuple3<A,B,C> Tuple3(A a, B b, C c)
Constructs a tuple of A,B,C- Type Parameters:
A- a's typeB- b's typeC- c's type- Parameters:
a- The a valueb- The b valuec- The c value- Returns:
- The tuple
-
Tuple4
public 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- Type Parameters:
A- a's typeB- b's typeC- c's typeD- d's type- Parameters:
a- The a valueb- The b valuec- The c valued- The d value- Returns:
- The tuple
-
Tuple5
public static <A,B,C,D,E> F.Tuple5<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- Type Parameters:
A- a's typeB- b's typeC- c's typeD- d's typeE- e's type- Parameters:
a- The a valueb- The b valuec- The c valued- The d valuee- The e value- Returns:
- The tuple
-
-