public abstract class AbstractTimeBasedCalculator<C extends TimeBasedChargeable> extends Object implements Calculator<C>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AbstractTimeBasedCalculator.TimeBasedDetailImpl |
| 构造器和说明 |
|---|
AbstractTimeBasedCalculator() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Bill<C> |
adjustBill(Bill<C> bill,
List<? extends Adjustment<C>> adjustments)
TODO 使用Provider方式聚合
|
Bill<C> |
calc(C chargeable) |
protected abstract C |
copyChargeable(C chargeable,
List<Revision> revisions)
!!!
|
protected abstract TimeUnit |
getTimeUnit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptprotected abstract TimeUnit getTimeUnit()
public Bill<C> calc(C chargeable)
calc 在接口中 Calculator<C extends TimeBasedChargeable>protected abstract C copyChargeable(C chargeable, List<Revision> revisions)
chargeable - chargeablerevisions - revisionsCopyright © 2020. All rights reserved.