Package play.libs

Class F


  • public class F
    extends Object
    Defines a set of functional programming style helpers.
    • Constructor Detail

      • F

        public F()
    • 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 type
        B - b's type
        Parameters:
        a - The a value
        b - 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 type
        B - b's type
        C - c's type
        Parameters:
        a - The a value
        b - The b value
        c - 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 type
        B - b's type
        C - c's type
        D - d's type
        Parameters:
        a - The a value
        b - The b value
        c - The c value
        d - 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 type
        B - b's type
        C - c's type
        D - d's type
        E - e's type
        Parameters:
        a - The a value
        b - The b value
        c - The c value
        d - The d value
        e - The e value
        Returns:
        The tuple