public class Threading extends Object
thread(Object, Function, Function) The result of applying the first argument to the first function is applied to the second function. There are overloads with arity on functions
threadMaybe(Object, Function, Function) Like thread except that the call chain terminates if a function return null.
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
thread(T t)
t is returned
|
static <T0,T1> T1 |
thread(T0 t,
Function<T0,T1> f)
t is applied to f
|
static <T0,T1,T2> T2 |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4,T5> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4,T5,T6> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> |
thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9,
Function<T10,T11> f10)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 and so on
|
static <T> T |
threadMaybe(T t)
t is returned
|
static <T0,T1> T1 |
threadMaybe(T0 t,
Function<T0,T1> f)
t is applied to f unless it is null
|
static <T0,T1,T2> T2 |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4,T5> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4,T5,T6> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> |
threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9,
Function<T10,T11> f10)
The result of applying the first argument t0 to the first function f0 is applied to the second function f1 unless its null and so on
|
public static <T> T thread(T t)
public static <T0,T1> T1 thread(T0 t,
Function<T0,T1> f)
public static <T> T threadMaybe(T t)
public static <T0,T1> T1 threadMaybe(T0 t,
Function<T0,T1> f)
public static <T0,T1,T2> T2 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1)
public static <T0,T1,T2> T2 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1)
public static <T0,T1,T2,T3> T3 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2)
public static <T0,T1,T2,T3> T3 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2)
public static <T0,T1,T2,T3,T4> T4 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3)
public static <T0,T1,T2,T3,T4> T4 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3)
public static <T0,T1,T2,T3,T4,T5> T5 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4)
public static <T0,T1,T2,T3,T4,T5> T5 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4)
public static <T0,T1,T2,T3,T4,T5,T6> T6 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5)
public static <T0,T1,T2,T3,T4,T5,T6> T6 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5)
public static <T0,T1,T2,T3,T4,T5,T6,T7> T7 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6)
public static <T0,T1,T2,T3,T4,T5,T6,T7> T7 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8> T8 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8> T8 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9> T9 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9> T9 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> T10 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> T10 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> T11 thread(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9,
Function<T10,T11> f10)
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> T11 threadMaybe(T0 t0,
Function<T0,T1> f0,
Function<T1,T2> f1,
Function<T2,T3> f2,
Function<T3,T4> f3,
Function<T4,T5> f4,
Function<T5,T6> f5,
Function<T6,T7> f6,
Function<T7,T8> f7,
Function<T8,T9> f8,
Function<T9,T10> f9,
Function<T10,T11> f10)
Copyright © 2017. All rights reserved.