Subversion Repositories SmartDukaan

Rev

Rev 32130 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32130 Rev 32230
Line 5... Line 5...
5
	private String brand;
5
	private String brand;
6
	private String modelName;
6
	private String modelName;
7
	private String modelNumber;
7
	private String modelNumber;
8
	private String color;
8
	private String color;
9
	private String itemType;
9
	private String itemType;
-
 
10
	private boolean focused;
10
	public int getItemId() {
11
	public int getItemId() {
11
		return itemId;
12
		return itemId;
12
	}
13
	}
13
	public void setItemId(int itemId) {
14
	public void setItemId(int itemId) {
14
		this.itemId = itemId;
15
		this.itemId = itemId;
Line 23... Line 24...
23
		return modelName;
24
		return modelName;
24
	}
25
	}
25
	public void setModelName(String modelName) {
26
	public void setModelName(String modelName) {
26
		this.modelName = modelName;
27
		this.modelName = modelName;
27
	}
28
	}
-
 
29
 
28
	public String getModelNumber() {
30
	public String getModelNumber() {
29
		return modelNumber;
31
		return modelNumber;
30
	}
32
	}
-
 
33
 
31
	public void setModelNumber(String modelNumber) {
34
	public void setModelNumber(String modelNumber) {
32
		this.modelNumber = modelNumber;
35
		this.modelNumber = modelNumber;
33
	}
36
	}
-
 
37
 
34
	public String getColor() {
38
	public String getColor() {
35
		return color;
39
		return color;
36
	}
40
	}
37
 
41
 
-
 
42
	public ItemModel(int itemId, String brand, String modelName, String modelNumber, String color, String itemType, boolean focused) {
-
 
43
		this.itemId = itemId;
-
 
44
		this.brand = brand;
-
 
45
		this.modelName = modelName;
-
 
46
		this.modelNumber = modelNumber;
-
 
47
		this.color = color;
-
 
48
		this.itemType = itemType;
-
 
49
		this.focused = focused;
-
 
50
	}
-
 
51
 
-
 
52
	public boolean isFocused() {
-
 
53
		return focused;
-
 
54
	}
-
 
55
 
38
	public void setColor(String color) {
56
	public void setColor(String color) {
39
		this.color = color;
57
		this.color = color;
40
	}
58
	}
41
 
59
 
42
	public String getItemType() {
60
	public String getItemType() {
Line 53... Line 71...
53
 
71
 
54
	public ItemModel() {
72
	public ItemModel() {
55
 
73
 
56
	}
74
	}
57
 
75
 
58
	public ItemModel(int itemId, String brand, String modelName, String modelNumber, String color, String itemType) {
-
 
59
		this.itemId = itemId;
-
 
60
		this.brand = brand;
-
 
61
		this.modelName = modelName;
-
 
62
		this.modelNumber = modelNumber;
76
	public void setFocused(boolean focused) {
63
		this.color = color;
77
		this.focused = focused;
64
		this.itemType = itemType;
-
 
65
	}
78
	}
66
 
79
 
67
	@Override
80
	@Override
68
	public int hashCode() {
81
	public int hashCode() {
69
		final int prime = 31;
82
		final int prime = 31;