📄 cart.java
字号:
package apusic.myshop.cart.ejb;import java.rmi.RemoteException;import java.util.Collection;import javax.ejb.EJBObject;import apusic.myshop.cart.model.CartModel;public interface Cart extends EJBObject { /** * get a list of items & their qty in the cart * @return the model data as read-only. */ public CartModel getDetails() throws RemoteException; // Methods to update the state of shopping cart. public void addItem(String itemNo) throws RemoteException; public void addItem(String itemNo, int qty) throws RemoteException; public void deleteItem(String itemNo) throws RemoteException; public void updateItemQty(String itemNo, int newQty) throws RemoteException; public void empty() throws RemoteException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -