java.lang.Object
io.qt.concurrent.QtConcurrent
High-level APIs that make it possible to write multi-threaded programs without using low-level threading primitives
Java wrapper for Qt's namespace QtConcurrent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
An implementation of this interface is given to one of QtConcurrent's filtered() methods.static interface
An implemetation of this interface is given one to QtConcurrent's map() methods.static interface
Implement this interface to perform a mapped operation.static class
Java wrapper for Qt class QtConcurrent::MedianDoublestatic interface
Implement this interface in order to perform a reduce operation.static enum
Java wrapper for Qt enum QtConcurrent::ReduceOptionstatic final class
QFlags type for enumQtConcurrent.ReduceOption
static interface
static interface
static interface
static interface
static interface
static final class
static enum
Java wrapper for Qt enum QtConcurrent::ThreadFunctionResult -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
blockingFilter
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <T> QList<T>
blockingFiltered
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <U,
T> U blockingFilteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) static <U,
T> U blockingFilteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,
T> U blockingFilteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> void
blockingMap
(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) static <U,
T> QList<U> blockingMapped
(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) static <U,
V, T> U blockingMappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) static <U,
V, T> U blockingMappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,
V, T> U blockingMappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> QFuture<@QtPrimitiveType Void>
filter
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <T> QFuture<T>
filtered
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <U,
T> QFuture<U> filteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) static <U,
T> QFuture<U> filteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,
T> QFuture<U> filteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> QFuture<@QtPrimitiveType Void>
map
(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) static <U,
T> QFuture<U> mapped
(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) static <U,
V, T> QFuture<U> mappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) static <U,
V, T> QFuture<U> mappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,
V, T> QFuture<U> mappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) static <T,
A> QFuture<T> run
(QThreadPool threadPool, QtConcurrent.Callable1<T, A> runnable, A a) static <T,
A, B> QFuture<T> run
(QThreadPool threadPool, QtConcurrent.Callable2<T, A, B> runnable, A a, B b) static <T,
A, B, C> QFuture<T> run
(QThreadPool threadPool, QtConcurrent.Callable3<T, A, B, C> runnable, A a, B b, C c) static <T,
A, B, C, D>
QFuture<T>run
(QThreadPool threadPool, QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) static <T,
A, B, C, D, E>
QFuture<T>run
(QThreadPool threadPool, QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static <A> QFuture<@QtPrimitiveType Void>
run
(QThreadPool threadPool, QtConcurrent.Runnable1<A> runnable, A a) static <A,
B> QFuture<@QtPrimitiveType Void> run
(QThreadPool threadPool, QtConcurrent.Runnable2<A, B> runnable, A a, B b) static <A,
B, C> QFuture<@QtPrimitiveType Void> run
(QThreadPool threadPool, QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) static <A,
B, C, D> QFuture<@QtPrimitiveType Void> run
(QThreadPool threadPool, QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) static <A,
B, C, D, E>
QFuture<@QtPrimitiveType Void>run
(QThreadPool threadPool, QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static QFuture<@QtPrimitiveType Void>
run
(QThreadPool threadPool, Runnable runnable) static <T> QFuture<T>
run
(QThreadPool threadPool, Callable<T> callable) static <T,
A> QFuture<T> run
(QtConcurrent.Callable1<T, A> runnable, A a) static <T,
A, B> QFuture<T> run
(QtConcurrent.Callable2<T, A, B> runnable, A a, B b) static <T,
A, B, C> QFuture<T> run
(QtConcurrent.Callable3<T, A, B, C> runnable, A a, B b, C c) static <T,
A, B, C, D>
QFuture<T>run
(QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) static <T,
A, B, C, D, E>
QFuture<T>run
(QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static <A> QFuture<@QtPrimitiveType Void>
run
(QtConcurrent.Runnable1<A> runnable, A a) static <A,
B> QFuture<@QtPrimitiveType Void> run
(QtConcurrent.Runnable2<A, B> runnable, A a, B b) static <A,
B, C> QFuture<@QtPrimitiveType Void> run
(QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) static <A,
B, C, D> QFuture<@QtPrimitiveType Void> run
(QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) static <A,
B, C, D, E>
QFuture<@QtPrimitiveType Void>run
(QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static QFuture<@QtPrimitiveType Void>
static <T> QFuture<T>
static <T> QtConcurrent.ThreadEngineStarter<T>
startFiltered
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <U,
T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,
T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced
(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> QtConcurrent.ThreadEngineStarter<@QtPrimitiveType Void>
startMap
(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) static <U,
T> QtConcurrent.ThreadEngineStarter<U> startMapped
(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) static <U,
V, T> QtConcurrent.ThreadEngineStarter<U> startMappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) static <U,
V, T> QtConcurrent.ThreadEngineStarter<U> startMappedReduced
(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption... options)
-
Method Details
-
map
@QtUninvokable public static <T> QFuture<@QtPrimitiveType Void> map(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) -
blockingMap
@QtUninvokable public static <T> void blockingMap(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) -
mapped
@QtUninvokable public static <U,T> QFuture<U> mapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) -
blockingMapped
@QtUninvokable public static <U,T> QList<U> blockingMapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) -
mappedReduced
@QtUninvokable public static <U,V, QFuture<U> mappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) -
mappedReduced
@QtUninvokable public static <U,V, QFuture<U> mappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) -
mappedReduced
@QtUninvokable public static <U,V, QFuture<U> mappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) -
blockingMappedReduced
@QtUninvokable public static <U,V, U blockingMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) -
blockingMappedReduced
@QtUninvokable public static <U,V, U blockingMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) -
blockingMappedReduced
@QtUninvokable public static <U,V, U blockingMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) -
filter
@QtUninvokable public static <T> QFuture<@QtPrimitiveType Void> filter(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
blockingFilter
@QtUninvokable public static <T> void blockingFilter(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
filtered
@QtUninvokable public static <T> QFuture<T> filtered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
blockingFiltered
@QtUninvokable public static <T> QList<T> blockingFiltered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
filteredReduced
@QtUninvokable public static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) -
filteredReduced
@QtUninvokable public static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) -
filteredReduced
@QtUninvokable public static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) -
blockingFilteredReduced
@QtUninvokable public static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) -
blockingFilteredReduced
@QtUninvokable public static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) -
blockingFilteredReduced
@QtUninvokable public static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) -
run
-
run
-
run
-
run
@QtUninvokable public static QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, Runnable runnable) -
run
-
run
public static <A> QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, QtConcurrent.Runnable1<A> runnable, A a) -
run
public static <A,B> QFuture<@QtPrimitiveType Void> run(QtConcurrent.Runnable2<A, B> runnable, A a, B b) -
run
public static <A,B> QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, QtConcurrent.Runnable2<A, B> runnable, A a, B b) -
run
public static <A,B, QFuture<@QtPrimitiveType Void> runC> (QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) -
run
public static <A,B, QFuture<@QtPrimitiveType Void> runC> (QThreadPool threadPool, QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) -
run
public static <A,B, QFuture<@QtPrimitiveType Void> runC, D> (QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) -
run
public static <A,B, QFuture<@QtPrimitiveType Void> runC, D> (QThreadPool threadPool, QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) -
run
public static <A,B, QFuture<@QtPrimitiveType Void> runC, D, E> (QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
run
public static <A,B, QFuture<@QtPrimitiveType Void> runC, D, E> (QThreadPool threadPool, QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
run
-
run
public static <T,A> QFuture<T> run(QThreadPool threadPool, QtConcurrent.Callable1<T, A> runnable, A a) -
run
-
run
public static <T,A, QFuture<T> runB> (QThreadPool threadPool, QtConcurrent.Callable2<T, A, B> runnable, A a, B b) -
run
-
run
public static <T,A, QFuture<T> runB, C> (QThreadPool threadPool, QtConcurrent.Callable3<T, A, B, C> runnable, A a, B b, C c) -
run
public static <T,A, QFuture<T> runB, C, D> (QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) -
run
public static <T,A, QFuture<T> runB, C, D> (QThreadPool threadPool, QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) -
run
public static <T,A, QFuture<T> runB, C, D, E> (QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
run
public static <T,A, QFuture<T> runB, C, D, E> (QThreadPool threadPool, QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
startMap
public static <T> QtConcurrent.ThreadEngineStarter<@QtPrimitiveType Void> startMap(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) -
startMapped
@QtUninvokable public static <U,T> QtConcurrent.ThreadEngineStarter<U> startMapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) -
startMappedReduced
@QtUninvokable public static <U,V, QtConcurrent.ThreadEngineStarter<U> startMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) -
startMappedReduced
@QtUninvokable public static <U,V, QtConcurrent.ThreadEngineStarter<U> startMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption... options) -
startFilteredReduced
@QtUninvokable public static <U,T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) -
startFilteredReduced
@QtUninvokable public static <U,T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) -
startFiltered
@QtUninvokable public static <T> QtConcurrent.ThreadEngineStarter<T> startFiltered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor)
-