类 ConsumerGoods
java.lang.Object
org.coodex.billing.box.ConsumerGoods
- 所有已实现的接口:
Adjustment<Chargeable>,Revision
消费品
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
ConsumerGoods
- 参数:
price- 单价quantity- 数量name- 名称
-
-
方法详细资料
-
adjust
- 指定者:
adjust在接口中Adjustment<Chargeable>- 参数:
bill- 待调整的账单- 返回:
- 调整金额,整数调增,负数调减,为0则表示不调整
-
getName
-
getPrice
public int getPrice() -
getQuantity
public float getQuantity()
-