shoppingcartitem.java
来自「一个很适合初学者的网上书店系统」· Java 代码 · 共 51 行
JAVA
51 行
/**
*
*/
package com.ascent.util;
import java.io.Serializable;
import com.ascent.bean.Book;
public class ShoppingCartItem implements Serializable {
private Book book = null;
private int quantity = 1;
public void setBook(Book book) {
this.book = book;
}
public Book getBook() {
return this.getBook();
}
public int getQuantity() {
return this.quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public int getBookId() {
return this.book.getBookId().intValue();
}
public double getBookPrice() {
return this.book.getBookPrice().doubleValue();
}
public String getBookName() {
return this.book.getBookName();
}
public String getBookAuthor() {
return this.book.getBookAuthor();
}
public String getDescribes() {
return this.book.getDescribes();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?