📄 shoppingcartitem.java
字号:
/**
*
*/
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();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -