6
java.util.concurrent.TimeUnit
有這個來源:爲什麼java.util.concurrent.TimeUnit.convert拋出的AbstractMethodError,而不是被抽象
public long convert(long sourceDuration, TimeUnit sourceUnit) {
throw new AbstractMethodError();
}
爲什麼不是這樣的一個abstract
方法類似
abstract int excessNanos(long d, long m);
謝謝!但這個類(TimeUnit)的一些是抽象的,有些不是 –