Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28641 amit.gupta 1
package com.spice.profitmandi.dao.model;
2
 
3
public class PriceDropBrandModel {
4
 
5
	private String brand;
6
	private long amount;
7
 
8
	public String getBrand() {
9
		return brand;
10
	}
11
 
12
	public void setBrand(String brand) {
13
		this.brand = brand;
14
	}
15
 
16
	public long getAmount() {
17
		return amount;
18
	}
19
 
20
	public void setAmount(long amount) {
21
		this.amount = amount;
22
	}
23
 
24
	public PriceDropBrandModel(String brand, long amount) {
25
		super();
26
		this.brand = brand;
27
		this.amount = amount;
28
	}
29
 
30
	@Override
31
	public int hashCode() {
32
		final int prime = 31;
33
		int result = 1;
34
		result = prime * result + (int) (amount ^ (amount >>> 32));
35
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
36
		return result;
37
	}
38
 
39
	@Override
40
	public boolean equals(Object obj) {
41
		if (this == obj)
42
			return true;
43
		if (obj == null)
44
			return false;
45
		if (getClass() != obj.getClass())
46
			return false;
47
		PriceDropBrandModel other = (PriceDropBrandModel) obj;
48
		if (amount != other.amount)
49
			return false;
50
		if (brand == null) {
51
			if (other.brand != null)
52
				return false;
53
		} else if (!brand.equals(other.brand))
54
			return false;
55
		return true;
56
	}
57
 
58
	@Override
59
	public String toString() {
60
		return "PriceDropBrandModel [brand=" + brand + ", amount=" + amount + "]";
61
	}
62
 
63
}