1 | public class Product {↵ | | 1 | public class DataPoint {↵
|
2 | private String productId;↵ | | 2 | private long id;↵
|
3 | private String description;↵ | | 3 | private int sequence;↵
|
4 | private BigDecimal price;↵ | | 4 | private BigDecimal x;↵
|
5 | private int numberAvailable;↵ | | 5 | private BigDecimal y;↵
|
6 | private int numberOrdered;↵ | | 6 | private String description;↵
|
|
7 | /**↵ | | 7 | /**↵
|
8 | * @return Returns the description.↵ | | 8 | * @return Returns the id.↵
|
9 | */↵ | | 9 | */↵
|
10 | public String getDescription() {↵ | | 10 | public long getId() {↵
|
11 | return description;↵ | | 11 | return id;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | /**↵ | | 13 | /**↵
|
14 | * @param description The description to set.↵ | | 14 | * @param id The id to set.↵
|
15 | */↵ | | 15 | */↵
|
16 | public void setDescription(String description) {↵ | | 16 | public void set↵
|
17 | this.description = description↵ | | 17 | Id(long id) {↵
|
18 | ;↵ | | 18 | this.id = id;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | /**↵ | | 20 | /**↵
|
21 | * @return Returns the numberAvailable↵ | | 21 | * Getter for property 'sequence'.↵
|
| | | 22 | *↵
|
22 | .↵ | | 23 | * @return Value for property 'sequence'.↵
|
23 | */↵ | | 24 | */↵
|
24 | public int getNumberAvailable() {↵ | | 25 | public int getSequence() {↵
|
25 | return numberAvailable;↵ | | 26 | return sequence;↵
|
26 | }↵ | | 27 | }↵
|
|
27 | /**↵ | | 28 | /**↵
|
28 | * @param numberAvailable The numberAvailable to set↵ | | 29 | * Setter for property 'sequence'.↵
|
| | | 30 | *↵
|
29 | .↵ | | 31 | * @param sequence Value to set for property 'sequence'.↵
|
30 | */↵ | | 32 | */↵
|
31 | public void setNumberAvailable(int numberAvailable) {↵ | | 33 | public void set↵
|
32 | this.numberAvailable = numberAvailabl↵ | | 34 | Sequence(int sequence) {↵
|
33 | e;↵ | | 35 | this.sequence = sequence;↵
|
34 | }↵ | | 36 | }↵
|
|
35 | /**↵ | | 37 | /**↵
|
36 | * @return Returns the numberOrdered.↵ | | 38 | * @return Returns the description.↵
|
37 | */↵ | | 39 | */↵
|
38 | public int getNumberOrdered() {↵ | | 40 | public String getDescription() {↵
|
39 | return numberOrdered;↵ | | 41 | return description;↵
|
40 | }↵ | | 42 | }↵
|
|
41 | /**↵ | | 43 | /**↵
|
42 | * @param numberOrdered The numberOrdered to set.↵ | | 44 | * @param ↵
|
43 | */↵ | | |
|
44 | public void setNumberOrdered(int numberOrdered) {↵ | | |
|
45 | this.numberOrdered = numberOrdered↵ | | 45 | description The description to set.↵
|
| | | 46 | */↵
|
| | | 47 | public void setDescription(String description) {↵
|
46 | ;↵ | | 48 | this.description = description;↵
|
47 | }↵ | | 49 | }↵
|
|
48 | /**↵ | | 50 | /**↵
|
49 | * @return Returns the productId.↵ | | 51 | * @return Returns the x.↵
|
50 | */↵ | | 52 | */↵
|
51 | public String getProductId() {↵ | | 53 | public BigDecimal getX() {↵
|
52 | return productId;↵ | | 54 | return x;↵
|
53 | }↵ | | 55 | }↵
|
|
54 | /**↵ | | 56 | /**↵
|
55 | * @param productId The productId to set.↵ | | 57 | * @param x The x to set.↵
|
56 | */↵ | | 58 | */↵
|
57 | public void setProductId(String productId) {↵ | | 59 | public void set↵
|
58 | this.productId = productId↵ | | 60 | X(BigDecimal x) {↵
|
59 | ;↵ | | 61 | this.x = x;↵
|
60 | }↵ | | 62 | }↵
|
|
61 | /**↵ | | 63 | /**↵
|
62 | * @return Returns the price.↵ | | 64 | * @return Returns the y.↵
|
63 | */↵ | | 65 | */↵
|
64 | public BigDecimal getPrice() {↵ | | 66 | public BigDecimal getY() {↵
|
65 | return price;↵ | | 67 | return y;↵
|
66 | }↵ | | 68 | }↵
|
|
67 | /**↵ | | 69 | /**↵
|
68 | * @param price The price to set.↵ | | 70 | * @param y The y to set.↵
|
69 | */↵ | | 71 | */↵
|
70 | public void setPrice(BigDecimal price) {↵ | | 72 | public void setY(BigDecimal y) {↵
|
71 | this.price = price | | 73 | this.y = y
|