test
Форк от lirfrnk/test
1package com.bittercode.model;
2
3import java.io.Serializable;
4
5public class Book implements Serializable {
6
7private String barcode;
8private String name;
9private String author;
10private double price;
11private int quantity;
12
13public Book(String barcode, String name, String author, double price, int quantity) {
14this.barcode = barcode;
15this.name = name;
16this.author = author;
17this.setPrice(price);
18this.quantity = quantity;
19}
20
21public Book() {
22super();
23}
24
25public String getBarcode() {
26return barcode;
27}
28
29public void setBarcode(String barcode) {
30this.barcode = barcode;
31}
32
33public String getName() {
34return name;
35}
36
37public void setName(String name) {
38this.name = name;
39}
40
41public String getAuthor() {
42return author;
43}
44
45public void setAuthor(String author) {
46this.author = author;
47}
48
49public int getQuantity() {
50return quantity;
51}
52
53public void setQuantity(int quantity) {
54this.quantity = quantity;
55}
56
57public double getPrice() {
58return price;
59}
60
61public void setPrice(double price) {
62this.price = price;
63}
64
65}
66