shoppingcartitem.java

来自「JavaeeTutorial5的源代码。」· Java 代码 · 共 56 行

JAVA
56
字号
/* * Copyright 2007 Sun Microsystems, Inc. * All rights reserved.  You may not modify, use, * reproduce, or distribute this software except in * compliance with  the terms of the License at: * http://developer.sun.com/berkeley_license.html */package com.sun.cb.jsf;import java.math.BigDecimal;public class ShoppingCartItem {    BigDecimal pounds;    BigDecimal price;    RetailPriceItem item;    public ShoppingCartItem() {    }    public ShoppingCartItem(        RetailPriceItem item,        BigDecimal pounds,        BigDecimal price) {        this.item = item;        this.pounds = pounds;        this.price = price;    }    public void setItem(RetailPriceItem item) {        this.item = item;    }    public void setPounds(BigDecimal newPounds) {        this.pounds = newPounds;    }    public void setPrice(BigDecimal price) {        this.price = price;    }    public RetailPriceItem getItem() {        return item;    }    public BigDecimal getPounds() {        return pounds;    }    public BigDecimal getPrice() {        return price;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?