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 BooleanSupplierbooleanSupplier(BooleanSupplier booleanSupplier) static <T> Consumer<T>static DoubleBinaryOperatordoubleBinaryOperator(DoubleBinaryOperator doubleBinaryOperator) static DoubleConsumerdoubleConsumer(DoubleConsumer doubleConsumer) static <R> DoubleFunction<R>doubleFunction(DoubleFunction<? extends R> doubleFunction) static DoublePredicatedoublePredicate(DoublePredicate doublePredicate) static DoubleSupplierdoubleSupplier(DoubleSupplier doubleSupplier) static DoubleToIntFunctiondoubleToIntFunction(DoubleToIntFunction doubleToIntFunction) static DoubleToLongFunctiondoubleToLongFunction(DoubleToLongFunction doubleToLongFunction) static DoubleUnaryOperatordoubleUnaryOperator(DoubleUnaryOperator doubleUnaryOperator) static <T,R> Function<T, R> static IntBinaryOperatorintBinaryOperator(IntBinaryOperator intBinaryOperator) static IntConsumerintConsumer(IntConsumer intConsumer) static <R> IntFunction<R>intFunction(IntFunction<? extends R> intFunction) static IntPredicateintPredicate(IntPredicate intPredicate) static IntSupplierintSupplier(IntSupplier intSupplier) static IntToDoubleFunctionintToDoubleFunction(IntToDoubleFunction intToDoubleFunction) static IntToLongFunctionintToLongFunction(IntToLongFunction intToLongFunction) static IntUnaryOperatorintUnaryOperator(IntUnaryOperator intUnaryOperator) static LongBinaryOperatorlongBinaryOperator(LongBinaryOperator longBinaryOperator) static LongConsumerlongConsumer(LongConsumer longConsumer) static <R> LongFunction<R>longFunction(LongFunction<? extends R> longFunction) static LongPredicatelongPredicate(LongPredicate longPredicate) static LongSupplierlongSupplier(LongSupplier longSupplier) static LongToDoubleFunctionlongToDoubleFunction(LongToDoubleFunction longToDoubleFunction) static LongToIntFunctionlongToIntFunction(LongToIntFunction longToIntFunction) static LongUnaryOperatorlongUnaryOperator(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 Runnablestatic <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
-