java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QPromise<T>
- All Implemented Interfaces:
QtObjectInterface
public final class QPromise<T> extends QtObject
Way to store computation results to be accessed by QFuture
Java wrapper for Qt class QPromise
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QPromise()
See QPromise::QPromise(QFutureInterface<T> other)
protected
QPromise(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description boolean
addResult(T result)
boolean
addResult(T result, int index)
void
finish()
See QPromise::QFuture<T>
future()
boolean
isCanceled()
See QPromise::void
setException(Throwable e)
void
setProgressRange(int minimum, int maximum)
See QPromise::void
setProgressValue(int progressValue)
See QPromise::void
setProgressValueAndText(int progressValue, String progressText)
See QPromise::void
start()
See QPromise::void
suspendIfRequested()
See QPromise::void
swap(QPromise<T> other)
See QPromise::
-
Constructor Details
-
QPromise
public QPromise()See QPromise::
-
QPromise
-
QPromise
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details