Subversion Repositories SmartDukaan

Rev

Rev 18454 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18454 amit.gupta 1
package in.shop2020.metamodel.util;
2
 
3
public class QtyPricePojo {
20423 amit.gupta 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
	}
18454 amit.gupta 28
	private Long quantity;
29
	private Double price;
30
	public void setQuantity(Long quantity) {
31
		this.quantity = quantity;
32
	}
33
	public Long getQuantity() {
34
		return quantity;
35
	}
36
	public void setPrice(Double price) {
37
		this.price = price;
38
	}
39
	public Double getPrice() {
40
		return price;
41
	}
42
	@Override
43
	public String toString() {
44
		return "QtyPricePojo [quantity=" + quantity + ", price=" + price + "]";
45
	}
46
 
47
}