| Constructor and Description |
|---|
BonusItem(IRule<T> rule,
IItem<T> item) |
| Modifier and Type | Method and Description |
|---|---|
T |
as()
購物車品項的真實類別
|
boolean |
equals(java.lang.Object obj) |
double |
getFracQuantity()
for
Calculator use only. |
java.io.Serializable |
getIdentity()
購物車品項識別,例如 產品代號
|
long |
getQuantity()
The quantity of bonus.
|
double |
getRegularPrice()
原價
|
IRule<T> |
getRule()
The assoicate rule of this bonus.
|
double |
getSalePrice()
售價
|
int |
hashCode() |
BonusItem<T> |
incFracQuantity(double fracQuantity)
for
Calculator use only. |
void |
setFracQuantity(double fracQuantity)
for
Calculator use only. |
void |
setQuantity(long quantity)
Not supported.
|
java.lang.String |
toString() |
public java.io.Serializable getIdentity()
IItemgetIdentity in interface IItem<T>IItem.getIdentity()public T as()
IItemas in interface IItem<T>IItem.as()public long getQuantity()
getQuantity in interface IItem<T>public void setQuantity(long quantity)
setQuantity in interface IItem<T>quantity - public IRule<T> getRule()
public double getFracQuantity()
Calculator use only.public BonusItem<T> incFracQuantity(double fracQuantity)
Calculator use only.fracQuantity - public void setFracQuantity(double fracQuantity)
Calculator use only.fracQuantity - public double getSalePrice()
IItemgetSalePrice in interface IItem<T>IItem.getSalePrice()public double getRegularPrice()
IItemgetRegularPrice in interface IItem<T>IItem.getRegularPrice()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019. All rights reserved.