java.lang.Object
org.jooq.lambda.Blocking
A factory class for methods that wrap functional interfaces like
Supplier
in a "blocking" (ForkJoinPool.ManagedBlocker
) equivalent, which
can be used with the ForkJoinPool
.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
U> BiConsumer<T, U> biConsumer
(BiConsumer<? super T, ? super U> biConsumer) static <T,
U, R> BiFunction<T, U, R> biFunction
(BiFunction<? super T, ? super U, ? extends R> biFunction) static <T> BinaryOperator<T>
binaryOperator
(BinaryOperator<T> binaryOperator) static <T,
U> BiPredicate<T, U> biPredicate
(BiPredicate<? super T, ? super U> biPredicate) static BooleanSupplier
booleanSupplier
(BooleanSupplier booleanSupplier) static <T> Consumer<T>
static DoubleBinaryOperator
doubleBinaryOperator
(DoubleBinaryOperator doubleBinaryOperator) static DoubleConsumer
doubleConsumer
(DoubleConsumer doubleConsumer) static <R> DoubleFunction<R>
doubleFunction
(DoubleFunction<? extends R> doubleFunction) static DoublePredicate
doublePredicate
(DoublePredicate doublePredicate) static DoubleSupplier
doubleSupplier
(DoubleSupplier doubleSupplier) static DoubleToIntFunction
doubleToIntFunction
(DoubleToIntFunction doubleToIntFunction) static DoubleToLongFunction
doubleToLongFunction
(DoubleToLongFunction doubleToLongFunction) static DoubleUnaryOperator
doubleUnaryOperator
(DoubleUnaryOperator doubleUnaryOperator) static <T,
R> Function<T, R> static IntBinaryOperator
intBinaryOperator
(IntBinaryOperator intBinaryOperator) static IntConsumer
intConsumer
(IntConsumer intConsumer) static <R> IntFunction<R>
intFunction
(IntFunction<? extends R> intFunction) static IntPredicate
intPredicate
(IntPredicate intPredicate) static IntSupplier
intSupplier
(IntSupplier intSupplier) static IntToDoubleFunction
intToDoubleFunction
(IntToDoubleFunction intToDoubleFunction) static IntToLongFunction
intToLongFunction
(IntToLongFunction intToLongFunction) static IntUnaryOperator
intUnaryOperator
(IntUnaryOperator intUnaryOperator) static LongBinaryOperator
longBinaryOperator
(LongBinaryOperator longBinaryOperator) static LongConsumer
longConsumer
(LongConsumer longConsumer) static <R> LongFunction<R>
longFunction
(LongFunction<? extends R> longFunction) static LongPredicate
longPredicate
(LongPredicate longPredicate) static LongSupplier
longSupplier
(LongSupplier longSupplier) static LongToDoubleFunction
longToDoubleFunction
(LongToDoubleFunction longToDoubleFunction) static LongToIntFunction
longToIntFunction
(LongToIntFunction longToIntFunction) static LongUnaryOperator
longUnaryOperator
(LongUnaryOperator longUnaryOperator) static <T> ObjDoubleConsumer<T>
objDoubleConsumer
(ObjDoubleConsumer<T> objDoubleConsumer) static <T> ObjIntConsumer<T>
objIntConsumer
(ObjIntConsumer<T> objIntConsumer) static <T> ObjLongConsumer<T>
objLongConsumer
(ObjLongConsumer<T> objLongConsumer) static <T> Predicate<T>
static Runnable
static <T> Supplier<T>
static <T,
U> ToDoubleBiFunction<T, U> toDoubleBiFunction
(ToDoubleBiFunction<? super T, ? super U> toDoubleBiFunction) static <T> ToDoubleFunction<T>
toDoubleFunction
(ToDoubleFunction<? super T> toDoubleFunction) static <T,
U> ToIntBiFunction<T, U> toIntBiFunction
(ToIntBiFunction<? super T, ? super U> toIntBiFunction) static <T> ToIntFunction<T>
toIntFunction
(ToIntFunction<? super T> toIntFunction) static <T,
U> ToLongBiFunction<T, U> toLongBiFunction
(ToLongBiFunction<? super T, ? super U> toLongBiFunction) static <T> ToLongFunction<T>
toLongFunction
(ToLongFunction<? super T> toLongFunction) static <T> UnaryOperator<T>
unaryOperator
(UnaryOperator<T> unaryOperator)
-
Method Details
-
runnable
-
biConsumer
-
biFunction
public static <T,U, BiFunction<T,R> U, biFunctionR> (BiFunction<? super T, ? super U, ? extends R> biFunction) -
biPredicate
-
binaryOperator
-
booleanSupplier
-
consumer
-
doubleBinaryOperator
-
doubleConsumer
-
doubleFunction
-
doublePredicate
-
doubleSupplier
-
doubleToIntFunction
-
doubleToLongFunction
-
doubleUnaryOperator
-
function
-
intBinaryOperator
-
intConsumer
-
intFunction
-
intPredicate
-
intSupplier
-
intToDoubleFunction
-
intToLongFunction
-
intUnaryOperator
-
longBinaryOperator
-
longConsumer
-
longFunction
-
longPredicate
-
longSupplier
-
longToDoubleFunction
-
longToIntFunction
-
longUnaryOperator
-
objDoubleConsumer
-
objIntConsumer
-
objLongConsumer
-
predicate
-
supplier
-
toDoubleBiFunction
public static <T,U> ToDoubleBiFunction<T,U> toDoubleBiFunction(ToDoubleBiFunction<? super T, ? super U> toDoubleBiFunction) -
toDoubleFunction
public static <T> ToDoubleFunction<T> toDoubleFunction(ToDoubleFunction<? super T> toDoubleFunction) -
toIntBiFunction
public static <T,U> ToIntBiFunction<T,U> toIntBiFunction(ToIntBiFunction<? super T, ? super U> toIntBiFunction) -
toIntFunction
-
toLongBiFunction
public static <T,U> ToLongBiFunction<T,U> toLongBiFunction(ToLongBiFunction<? super T, ? super U> toLongBiFunction) -
toLongFunction
-
unaryOperator
-