public class StubbedFuture<T>
Adapter of the Future interface always returning a fixed value immediately.
Constructor and description |
---|
StubbedFuture
(T value) Constructor taking the value to be returned. |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
cancel(boolean mayInterruptIfRunning) |
|
public T |
get() |
|
public T |
get(long timeout, java.util.concurrent.TimeUnit unit) |
|
public boolean |
isCancelled() |
|
public boolean |
isDone() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
ReadyAPI core SDK 3.57.0