|
@@ -26,34 +26,21 @@ public class Item {
|
26
|
26
|
return name;
|
27
|
27
|
}
|
28
|
28
|
|
29
|
|
- public void setName(String name) {
|
30
|
|
- this.name = name;
|
31
|
|
- }
|
32
|
29
|
|
33
|
30
|
public Double getPrice() {
|
34
|
31
|
return price;
|
35
|
32
|
}
|
36
|
33
|
|
37
|
|
- public void setPrice(Double price) {
|
38
|
|
- this.price = price;
|
39
|
|
- }
|
40
|
34
|
|
41
|
35
|
public String getType() {
|
42
|
36
|
return type;
|
43
|
37
|
}
|
44
|
38
|
|
45
|
|
- public void setType(String type) {
|
46
|
|
- this.type = type;
|
47
|
|
- }
|
48
|
39
|
|
49
|
40
|
public String getExpiration() {
|
50
|
41
|
return expiration;
|
51
|
42
|
}
|
52
|
43
|
|
53
|
|
- public void setExpiration(String expiration) {
|
54
|
|
- this.expiration = expiration;
|
55
|
|
- }
|
56
|
|
-
|
57
|
44
|
@Override
|
58
|
45
|
public String toString(){
|
59
|
46
|
return "name:" + name + " price:" + price + " type:" + type + " expiration:" + expiration;
|