Subversion Repositories SmartDukaan

Rev

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

Rev 18454 Rev 20423
Line 1... Line 1...
1
package in.shop2020.metamodel.util;
1
package in.shop2020.metamodel.util;
2
 
2
 
3
public class QtyPricePojo {
3
public class QtyPricePojo {
-
 
4
	@Override
-
 
5
	public int hashCode() {
-
 
6
		final int prime = 31;
-
 
7
		int result = 1;
-
 
8
		result = prime * result
-
 
9
				+ ((quantity == null) ? 0 : quantity.hashCode());
-
 
10
		return result;
-
 
11
	}
-
 
12
	@Override
-
 
13
	public boolean equals(Object obj) {
-
 
14
		if (this == obj)
-
 
15
			return true;
-
 
16
		if (obj == null)
-
 
17
			return false;
-
 
18
		if (getClass() != obj.getClass())
-
 
19
			return false;
-
 
20
		QtyPricePojo other = (QtyPricePojo) obj;
-
 
21
		if (quantity == null) {
-
 
22
			if (other.quantity != null)
-
 
23
				return false;
-
 
24
		} else if (!quantity.equals(other.quantity))
-
 
25
			return false;
-
 
26
		return true;
-
 
27
	}
4
	private Long quantity;
28
	private Long quantity;
5
	private Double price;
29
	private Double price;
6
	public void setQuantity(Long quantity) {
30
	public void setQuantity(Long quantity) {
7
		this.quantity = quantity;
31
		this.quantity = quantity;
8
	}
32
	}