Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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