📄 book.java
字号:
package com.ghy.data.book;
import java.io.Serializable;
public class Book implements Serializable
{
private String id ;
private String name ;
private String number ;
private String author ;
private String publisher ;
private int price ;
private String description ;
private BookCategory category ;
public Book() {
super();
// TODO Auto-generated constructor stub
}
public Book(String name, String number, String author, String publisher,
int price, String description, BookCategory category) {
super();
this.name = name;
this.number = number;
this.author = author;
this.publisher = publisher;
this.price = price;
this.description = description;
this.category = category;
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the number
*/
public String getNumber() {
return number;
}
/**
* @param number the number to set
*/
public void setNumber(String number) {
this.number = number;
}
/**
* @return the author
*/
public String getAuthor() {
return author;
}
/**
* @param author the author to set
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* @return the publisher
*/
public String getPublisher() {
return publisher;
}
/**
* @param publisher the publisher to set
*/
public void setPublisher(String publisher) {
this.publisher = publisher;
}
/**
* @return the price
*/
public int getPrice() {
return price;
}
/**
* @param price the price to set
*/
public void setPrice(int price) {
this.price = price;
}
/**
* @return the description
*/
public String getDescription() {
return description;
}
/**
* @param description the description to set
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return the category
*/
public BookCategory getCategory() {
return category;
}
/**
* @param category the category to set
*/
public void setCategory(BookCategory category) {
this.category = category;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -