public class CurrentItem extends java.lang.Object implements IItem
| Modifier and Type | Method and Description |
|---|---|
CurrentItem |
as()
購物車品項的真實類別
|
boolean |
equals(java.lang.Object obj) |
java.io.Serializable |
getIdentity()
購物車品項識別,例如 產品代號
|
static CurrentItem |
getInstance() |
double |
getOriginalPrice()
原價
|
long |
getQuantity()
品項的數量
|
double |
getSalePrice()
售價
|
int |
hashCode() |
static boolean |
isCurrent(java.lang.Object obj) |
void |
setQuantity(long quantity)
設定品項數量
|
public static CurrentItem getInstance()
public java.io.Serializable getIdentity()
IItemgetIdentity in interface IItempublic CurrentItem as()
IItempublic long getQuantity()
IItemgetQuantity in interface IItempublic void setQuantity(long quantity)
IItemsetQuantity in interface IItemquantity - of itempublic double getSalePrice()
IItemgetSalePrice in interface IItempublic double getOriginalPrice()
IItemgetOriginalPrice in interface IItempublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static boolean isCurrent(java.lang.Object obj)
Copyright © 2018. All rights reserved.