Top Description Inners Constructors Methods
org.jooq.lambda

public final Class Blocking

extends Object
Class Inheritance
Imports
java.util.concurrent.ForkJoinPool, .ForkJoinPool.ManagedBlocker, java.util.function.BiConsumer, .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, .ToDoubleFunction, .ToIntBiFunction, .ToIntFunction, .ToLongBiFunction, .ToLongFunction, .UnaryOperator

A factory class for methods that wrap functional interfaces like Supplier in a "blocking" (ManagedBlocker) equivalent, which can be used with the ForkJoinPool.
Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T, U> BiConsumer<T, U>
biConsumer(BiConsumer<? super T, ? super U> biConsumer)

public static <T, U, R> BiFunction<T, U, R>
biFunction(BiFunction<? super T, ? super U, ? extends R> biFunction)

public static <T> BinaryOperator<T>
binaryOperator(BinaryOperator<T> binaryOperator)

public static <T, U> BiPredicate<T, U>
biPredicate(BiPredicate<? super T, ? super U> biPredicate)

public static BooleanSupplier
public static <T> Consumer<T>
consumer(Consumer<? super T> consumer)

public static DoubleBinaryOperator
public static DoubleConsumer
public static <R> DoubleFunction<R>
doubleFunction(DoubleFunction<? extends R> doubleFunction)

public static DoublePredicate
public static DoubleSupplier
public static DoubleToIntFunction
public static DoubleToLongFunction
public static DoubleUnaryOperator
public static <T, R> Function<T, R>
function(Function<? super T, ? extends R> function)

public static IntBinaryOperator
public static IntConsumer
intConsumer(IntConsumer intConsumer)

public static <R> IntFunction<R>
intFunction(IntFunction<? extends R> intFunction)

public static IntPredicate
intPredicate(IntPredicate intPredicate)

public static IntSupplier
intSupplier(IntSupplier intSupplier)

public static IntToDoubleFunction
public static IntToLongFunction
public static IntUnaryOperator
public static LongBinaryOperator
public static LongConsumer
longConsumer(LongConsumer longConsumer)

public static <R> LongFunction<R>
longFunction(LongFunction<? extends R> longFunction)

public static LongPredicate
public static LongSupplier
longSupplier(LongSupplier longSupplier)

public static LongToDoubleFunction
public static LongToIntFunction
public static LongUnaryOperator
public static <T> ObjDoubleConsumer<T>
objDoubleConsumer(ObjDoubleConsumer<T> objDoubleConsumer)

public static <T> ObjIntConsumer<T>
objIntConsumer(ObjIntConsumer<T> objIntConsumer)

public static <T> ObjLongConsumer<T>
objLongConsumer(ObjLongConsumer<T> objLongConsumer)

public static <T> Predicate<T>
predicate(Predicate<? super T> predicate)

public static Runnable
runnable(Runnable runnable)

public static <T> Supplier<T>
supplier(Supplier<? extends T> supplier)

public static <T, U> ToDoubleBiFunction<T, U>
toDoubleBiFunction(ToDoubleBiFunction<? super T, ? super U> toDoubleBiFunction)

public static <T> ToDoubleFunction<T>
toDoubleFunction(ToDoubleFunction<? super T> toDoubleFunction)

public static <T, U> ToIntBiFunction<T, U>
toIntBiFunction(ToIntBiFunction<? super T, ? super U> toIntBiFunction)

public static <T> ToIntFunction<T>
toIntFunction(ToIntFunction<? super T> toIntFunction)

public static <T, U> ToLongBiFunction<T, U>
toLongBiFunction(ToLongBiFunction<? super T, ? super U> toLongBiFunction)

public static <T> ToLongFunction<T>
toLongFunction(ToLongFunction<? super T> toLongFunction)

public static <T> UnaryOperator<T>
unaryOperator(UnaryOperator<T> unaryOperator)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Blockingback to summary
private Blocking()

Method Detail

biConsumerback to summary
public static <T, U> BiConsumer<T, U> biConsumer(BiConsumer<? super T, ? super U> biConsumer)
biFunctionback to summary
public static <T, U, R> BiFunction<T, U, R> biFunction(BiFunction<? super T, ? super U, ? extends R> biFunction)
binaryOperatorback to summary
public static <T> BinaryOperator<T> binaryOperator(BinaryOperator<T> binaryOperator)
biPredicateback to summary
public static <T, U> BiPredicate<T, U> biPredicate(BiPredicate<? super T, ? super U> biPredicate)
booleanSupplierback to summary
public static BooleanSupplier booleanSupplier(BooleanSupplier booleanSupplier)
consumerback to summary
public static <T> Consumer<T> consumer(Consumer<? super T> consumer)
doubleBinaryOperatorback to summary
public static DoubleBinaryOperator doubleBinaryOperator(DoubleBinaryOperator doubleBinaryOperator)
doubleConsumerback to summary
public static DoubleConsumer doubleConsumer(DoubleConsumer doubleConsumer)
doubleFunctionback to summary
public static <R> DoubleFunction<R> doubleFunction(DoubleFunction<? extends R> doubleFunction)
doublePredicateback to summary
public static DoublePredicate doublePredicate(DoublePredicate doublePredicate)
doubleSupplierback to summary
public static DoubleSupplier doubleSupplier(DoubleSupplier doubleSupplier)
doubleToIntFunctionback to summary
public static DoubleToIntFunction doubleToIntFunction(DoubleToIntFunction doubleToIntFunction)
doubleToLongFunctionback to summary
public static DoubleToLongFunction doubleToLongFunction(DoubleToLongFunction doubleToLongFunction)
doubleUnaryOperatorback to summary
public static DoubleUnaryOperator doubleUnaryOperator(DoubleUnaryOperator doubleUnaryOperator)
functionback to summary
public static <T, R> Function<T, R> function(Function<? super T, ? extends R> function)
intBinaryOperatorback to summary
public static IntBinaryOperator intBinaryOperator(IntBinaryOperator intBinaryOperator)
intConsumerback to summary
public static IntConsumer intConsumer(IntConsumer intConsumer)
intFunctionback to summary
public static <R> IntFunction<R> intFunction(IntFunction<? extends R> intFunction)
intPredicateback to summary
public static IntPredicate intPredicate(IntPredicate intPredicate)
intSupplierback to summary
public static IntSupplier intSupplier(IntSupplier intSupplier)
intToDoubleFunctionback to summary
public static IntToDoubleFunction intToDoubleFunction(IntToDoubleFunction intToDoubleFunction)
intToLongFunctionback to summary
public static IntToLongFunction intToLongFunction(IntToLongFunction intToLongFunction)
intUnaryOperatorback to summary
public static IntUnaryOperator intUnaryOperator(IntUnaryOperator intUnaryOperator)
longBinaryOperatorback to summary
public static LongBinaryOperator longBinaryOperator(LongBinaryOperator longBinaryOperator)
longConsumerback to summary
public static LongConsumer longConsumer(LongConsumer longConsumer)
longFunctionback to summary
public static <R> LongFunction<R> longFunction(LongFunction<? extends R> longFunction)
longPredicateback to summary
public static LongPredicate longPredicate(LongPredicate longPredicate)
longSupplierback to summary
public static LongSupplier longSupplier(LongSupplier longSupplier)
longToDoubleFunctionback to summary
public static LongToDoubleFunction longToDoubleFunction(LongToDoubleFunction longToDoubleFunction)
longToIntFunctionback to summary
public static LongToIntFunction longToIntFunction(LongToIntFunction longToIntFunction)
longUnaryOperatorback to summary
public static LongUnaryOperator longUnaryOperator(LongUnaryOperator longUnaryOperator)
objDoubleConsumerback to summary
public static <T> ObjDoubleConsumer<T> objDoubleConsumer(ObjDoubleConsumer<T> objDoubleConsumer)
objIntConsumerback to summary
public static <T> ObjIntConsumer<T> objIntConsumer(ObjIntConsumer<T> objIntConsumer)
objLongConsumerback to summary
public static <T> ObjLongConsumer<T> objLongConsumer(ObjLongConsumer<T> objLongConsumer)
predicateback to summary
public static <T> Predicate<T> predicate(Predicate<? super T> predicate)
runnableback to summary
public static Runnable runnable(Runnable runnable)
supplierback to summary
public static <T> Supplier<T> supplier(Supplier<? extends T> supplier)
toDoubleBiFunctionback to summary
public static <T, U> ToDoubleBiFunction<T, U> toDoubleBiFunction(ToDoubleBiFunction<? super T, ? super U> toDoubleBiFunction)
toDoubleFunctionback to summary
public static <T> ToDoubleFunction<T> toDoubleFunction(ToDoubleFunction<? super T> toDoubleFunction)
toIntBiFunctionback to summary
public static <T, U> ToIntBiFunction<T, U> toIntBiFunction(ToIntBiFunction<? super T, ? super U> toIntBiFunction)
toIntFunctionback to summary
public static <T> ToIntFunction<T> toIntFunction(ToIntFunction<? super T> toIntFunction)
toLongBiFunctionback to summary
public static <T, U> ToLongBiFunction<T, U> toLongBiFunction(ToLongBiFunction<? super T, ? super U> toLongBiFunction)
toLongFunctionback to summary
public static <T> ToLongFunction<T> toLongFunction(ToLongFunction<? super T> toLongFunction)
unaryOperatorback to summary
public static <T> UnaryOperator<T> unaryOperator(UnaryOperator<T> unaryOperator)
org.jooq.lambda back to summary

pack-priv Class Blocking.BlockingSupplier<T>

extends Object
implements Supplier<T>
Class Inheritance
All Implemented Interfaces
java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
private static final Object
pack-priv volatile T
pack-priv final Supplier<? extends T>

Constructor Summary

AccessConstructor and Description
pack-priv
BlockingSupplier(Supplier<? extends T> supplier)

Method Summary

Modifier and TypeMethod and Description
public T
get()

Implements java.util.function.Supplier.get.

Gets a result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NULLback to summary
private static final Object NULL
resultback to summary
pack-priv volatile T result
supplierback to summary
pack-priv final Supplier<? extends T> supplier

Constructor Detail

BlockingSupplierback to summary
pack-priv BlockingSupplier(Supplier<? extends T> supplier)

Method Detail

getback to summary
public T get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Annotations
@Override