Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
26588 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.List;
4
 
5
public class ItemTypeParams {
6
	private List<Integer> catalogId;
7
	private List<String> brands;
27124 amit.gupta 8
	private int categoryId;
26588 tejbeer 9
 
27124 amit.gupta 10
	@Override
11
	public int hashCode() {
12
		final int prime = 31;
13
		int result = 1;
14
		result = prime * result + ((brands == null) ? 0 : brands.hashCode());
15
		result = prime * result + ((catalogId == null) ? 0 : catalogId.hashCode());
16
		result = prime * result + categoryId;
17
		return result;
18
	}
19
 
20
	@Override
21
	public boolean equals(Object obj) {
22
		if (this == obj)
23
			return true;
24
		if (obj == null)
25
			return false;
26
		if (getClass() != obj.getClass())
27
			return false;
28
		ItemTypeParams other = (ItemTypeParams) obj;
29
		if (brands == null) {
30
			if (other.brands != null)
31
				return false;
32
		} else if (!brands.equals(other.brands))
33
			return false;
34
		if (catalogId == null) {
35
			if (other.catalogId != null)
36
				return false;
37
		} else if (!catalogId.equals(other.catalogId))
38
			return false;
39
		if (categoryId != other.categoryId)
40
			return false;
41
		return true;
42
	}
43
 
44
	public int getCategoryId() {
45
		return categoryId;
46
	}
47
 
48
	public void setCategoryId(int categoryId) {
49
		this.categoryId = categoryId;
50
	}
51
 
26588 tejbeer 52
	public ItemTypeParams(List<Integer> catalogId, List<String> brands) {
53
		super();
54
		this.catalogId = catalogId;
55
		this.brands = brands;
56
	}
57
 
58
	public ItemTypeParams() {
59
		super();
60
	}
61
 
62
	public List<Integer> getCatalogId() {
63
		return catalogId;
64
	}
65
 
66
	public void setCatalogId(List<Integer> catalogId) {
67
		this.catalogId = catalogId;
68
	}
69
 
70
	public List<String> getBrands() {
71
		return brands;
72
	}
73
 
74
	public void setBrands(List<String> brands) {
75
		this.brands = brands;
76
	}
77
 
78
	@Override
79
	public String toString() {
27124 amit.gupta 80
		return "ItemTypeParams [catalogId=" + catalogId + ", brands=" + brands + ", categoryId=" + categoryId + "]";
26588 tejbeer 81
	}
82
 
83
}