我在学习JDK 7时发现,java.util.concurrent.RunnableFuture<V>
接口中有一个run方法。我想知道在该接口已经扩展了Runnable
的情况下,在接口中重复定义相同的run方法签名的意义是什么。
package java.util.concurrent;
public interface RunnableFuture<V> extends Runnable, Future<V> {
/**
* Sets this Future to the result of its computation
* unless it has been cancelled.
*/
void run();
}