-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItem.java
More file actions
90 lines (75 loc) · 2.28 KB
/
Item.java
File metadata and controls
90 lines (75 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
public class Item {
private int item_id;
private String name;
private String category;
private float price;
private String old_price;
private boolean sellable_online;
private String link;
private boolean other_colors;
private String short_description;
private String designer;
private int depth;
private int height;
private int width;
Item(int item_id, String name, String category, float price, String old_price, boolean sellable_online,
String link, boolean other_colors, String short_description, String designer, int depth,int height, int width){
this.item_id = item_id;
this.name = name;
this.category = category;
this.price = price;
this.old_price = old_price;
this.sellable_online = sellable_online;
this.link = link;
this.other_colors = other_colors;
this.short_description = short_description;
this.designer = designer;
this.depth = depth;
this.height = height;
this.width = width;
}
public String toString(){
return item_id + ", " + name + ", " + category + ", " + price + ", "+ old_price + ", " +
sellable_online + ", " + link + ", " + other_colors + ", " + short_description + ", " +
designer + ", " + depth + ", " + height + ", " + width + "\n";
}
public int getItemId(){
return this.item_id;
}
public String getName(){
return this.name;
}
public String getCategory(){
return this.category;
}
public float getPrice(){
return this.price;
}
public String getOldPrice(){
return this.old_price;
}
public boolean getSellableOnline(){
return this.sellable_online;
}
public String getLink(){
return this.link;
}
public boolean getOtherColors(){
return this.other_colors;
}
public String getShortDescription(){
return this.short_description;
}
public String getDesigner(){
return this.designer;
}
public int getDepth(){
return this.depth;
}
public int getWidth(){
return this.width;
}
public int getHeight(){
return this.height;
}
}