ch.bind.philib.util
Class FinishedFuture<T>
java.lang.Object
ch.bind.philib.util.FinishedFuture<T>
- All Implemented Interfaces:
- Future<T>
public final class FinishedFuture<T>
- extends Object
- implements Future<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FinishedFuture
public FinishedFuture(T value)
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel in interface Future<T>
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled in interface Future<T>
isDone
public boolean isDone()
- Specified by:
isDone in interface Future<T>
get
public T get()
- Specified by:
get in interface Future<T>
get
public T get(long timeout,
TimeUnit unit)
- Specified by:
get in interface Future<T>
Copyright © 2013. All Rights Reserved.