类 AbstractTimeBasedCalculator<C extends TimeBasedChargeable>
java.lang.Object
org.coodex.billing.timebased.AbstractTimeBasedCalculator<C>
- 所有已实现的接口:
Calculator<C>,SelectableService<C>
public abstract class AbstractTimeBasedCalculator<C extends TimeBasedChargeable>
extends Object
implements Calculator<C>
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明adjustBill(Bill<C> bill, List<? extends Adjustment<C>> adjustments) protected abstract CcopyChargeable(C chargeable, List<Revision> revisions) !!!protected abstract TimeUnit从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.coodex.util.SelectableService
accept
-
构造器详细资料
-
AbstractTimeBasedCalculator
public AbstractTimeBasedCalculator()
-
-
方法详细资料
-
getTimeUnit
-
calc
- 指定者:
calc在接口中Calculator<C extends TimeBasedChargeable>
-
copyChargeable
!!! 自行实现,默认实现不靠谱- 参数:
chargeable- chargeablerevisions- revisions- 返回:
- 根据参数复制一个新的消费对象,用于多规则场景
-
adjustBill
- 参数:
bill- 需要调整的账单adjustments- 调整项目- 返回:
- 调整后账单
-