Package play.libs

Class F

java.lang.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 class 
    Represents a value of one of two possible types (a disjoint union)
    static interface 
    A Function with 3 arguments.
    static interface 
    A Function with 4 arguments.
    static class 
     
    static class 
    Exception thrown when an operation times out.
    static class 
    A pair - a tuple of the types A and B.
    static class 
    A tuple of A,B,C
    static class 
    A tuple of A,B,C,D
    static class 
    A tuple of A,B,C,D,E
  • Constructor Summary

    Constructors
    Constructor
    Description
    F()
     
  • Method Summary

    Modifier and Type
    Method
    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>
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • F

      public F()
  • Method Details

    • 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