Subversion Repositories SmartDukaan

Rev

Rev 21543 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21543 Rev 21923
Line 20... Line 20...
20
		return quantity;
20
		return quantity;
21
	}
21
	}
22
	public void setQuantity(int quantity) {
22
	public void setQuantity(int quantity) {
23
		this.quantity = quantity;
23
		this.quantity = quantity;
24
	}
24
	}
-
 
25
	
-
 
26
	
-
 
27
	@Override
-
 
28
	public int hashCode() {
-
 
29
		final int prime = 31;
-
 
30
		int result = 1;
-
 
31
		result = prime * result + itemId;
-
 
32
		result = prime * result + quantity;
-
 
33
		return result;
-
 
34
	}
-
 
35
 
-
 
36
	@Override
-
 
37
	public boolean equals(Object obj) {
-
 
38
		if (this == obj)
-
 
39
			return true;
-
 
40
		if (obj == null)
-
 
41
			return false;
-
 
42
		if (getClass() != obj.getClass())
-
 
43
			return false;
-
 
44
		ItemQty other = (ItemQty) obj;
-
 
45
		if (itemId != other.itemId)
-
 
46
			return false;
-
 
47
		if (quantity != other.quantity)
-
 
48
			return false;
-
 
49
		return true;
-
 
50
	}
-
 
51
 
25
	@Override
52
	@Override
26
	public String toString() {
53
	public String toString() {
27
		return "ItemQty [itemId=" + itemId + ", quantity=" + quantity + "]";
54
		return "ItemQty [itemId=" + itemId + ", quantity=" + quantity + "]";
28
	}
55
	}
29
	
56