- Enclosing class:
- ExpressionFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
ofEnv(Class<T> type1,
Class<U> type2,
Function<Environment,?> function,
BiFunction<Environment,T,?> biFunction,
ExpressionFactory.TriFunction<Environment,T,U,?> triFunction)
Create a factory that accepts an iterable (array or generic iterable)
-
Method Details
-
-
-
-
-
-
-
-
of
static <T,
U,
V> ExpressionFactory.Factory of(Class<T> type1,
Class<U> type2,
Class<V> type3,
BiFunction<T,U,?> biFunction,
ExpressionFactory.TriFunction<T,U,V,?> triFunction)
-
of
static <T,
U,
V,
W> ExpressionFactory.Factory of(Class<T> type1,
Class<U> type2,
Class<V> type3,
Class<W> type4,
ExpressionFactory.QuadFunction<T,U,V,W,?> function)
-
ofIterable
Create a factory that accepts an iterable (array or generic iterable)
- Type Parameters:
T - The iterable type
- Parameters:
type - The expected type class
function - The function to apply the arguments to
- Returns:
- The result of the function call
-
ofEnv
- Parameters:
function - The function to use
- Returns:
- The result of the function
-
ofEnv
- Type Parameters:
T - the type of the input to the function
- Parameters:
type - The parameter type class
function - The function to use when one argument is available
- Returns:
- The result of the function
-
ofEnv
- Type Parameters:
T - the type of the input to the function
U - the type of the input to the function
- Parameters:
type1 - The first parameter type class
type2 - The second parameter type class
biFunction - The function to use when one argument is available
triFunction - The function to use when two arguments are available
- Returns:
- The result of one of the functions
-
ofEnv
static <T,
U> ExpressionFactory.Factory ofEnv(Class<T> type1,
Class<U> type2,
Function<Environment,?> function,
BiFunction<Environment,T,?> biFunction,
ExpressionFactory.TriFunction<Environment,T,U,?> triFunction)
- Type Parameters:
T - the type of the input to the function
U - the type of the input to the function
- Parameters:
type1 - The first parameter type class
type2 - The second parameter type class
function - The function to use when no args are available
biFunction - The function to use when one argument is available
triFunction - The function to use when two arguments are available
- Returns:
- The result of one of the functions