cartitem.java
来自「一个优秀的供应商管理系统」· Java 代码 · 共 57 行
JAVA
57 行
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 + =
减小字号Ctrl + -
显示快捷键?