Subversion Repositories SmartDukaan

Rev

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

Rev 23017 Rev 32130
Line 32... Line 32...
32
		this.modelNumber = modelNumber;
32
		this.modelNumber = modelNumber;
33
	}
33
	}
34
	public String getColor() {
34
	public String getColor() {
35
		return color;
35
		return color;
36
	}
36
	}
-
 
37
 
37
	public void setColor(String color) {
38
	public void setColor(String color) {
38
		this.color = color;
39
		this.color = color;
39
	}
40
	}
-
 
41
 
40
	public String getItemType() {
42
	public String getItemType() {
41
		return itemType;
43
		return itemType;
42
	}
44
	}
-
 
45
 
43
	public void setItemType(String itemType) {
46
	public void setItemType(String itemType) {
44
		this.itemType = itemType;
47
		this.itemType = itemType;
45
	}
48
	}
-
 
49
 
-
 
50
	public ItemModel(int itemId) {
-
 
51
		this.itemId = itemId;
-
 
52
	}
-
 
53
 
-
 
54
	public ItemModel() {
-
 
55
 
-
 
56
	}
-
 
57
 
-
 
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;
-
 
63
		this.color = color;
-
 
64
		this.itemType = itemType;
-
 
65
	}
-
 
66
 
46
	@Override
67
	@Override
47
	public int hashCode() {
68
	public int hashCode() {
48
		final int prime = 31;
69
		final int prime = 31;
49
		int result = 1;
70
		int result = 1;
50
		result = prime * result + itemId;
71
		result = prime * result + itemId;
51
		return result;
72
		return result;
52
	}
73
	}
-
 
74
 
53
	@Override
75
	@Override
54
	public boolean equals(Object obj) {
76
	public boolean equals(Object obj) {
55
		if (this == obj)
77
		if (this == obj)
56
			return true;
78
			return true;
57
		if (obj == null)
79
		if (obj == null)