?? cartitem.java
字號:
package apusic.myshop.cart.model;import java.io.Serializable;/** * This class represents an individual line item * of the shopping cart. */public class CartItem implements Serializable { private String itemId; private String catalogId; private String name; private String style; private int quantity; private double unitCost; public CartItem(String itemId, String catalogId, String name, String style, int quantity, double unitCost) { this.itemId = itemId; this.catalogId = catalogId; this.name = name; this.style = style; this.quantity = quantity; this.unitCost = unitCost; } public String getItemId() { return itemId; } public String getCatalogId() { return catalogId; } public String getName() { return name; } public String getStyle() { return style; } public int getQuantity() { return quantity; } public double getUnitCost() { return unitCost; } public double getTotalCost() { return quantity * unitCost; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -