Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23557 amit.gupta 1
package com.spice.profitmandi.common.model;
2
 
3
import java.util.List;
4
 
5
public class SchemeItems {
6
	private List<Integer> schemeIds;
30122 amit.gupta 7
	private List<Integer> catalogIds;
8
 
9
 
23557 amit.gupta 10
	public List<Integer> getSchemeIds() {
11
		return schemeIds;
12
	}
30122 amit.gupta 13
 
23557 amit.gupta 14
	public void setSchemeIds(List<Integer> schemeIds) {
15
		this.schemeIds = schemeIds;
16
	}
30122 amit.gupta 17
 
18
	public List<Integer> getCatalogIds() {
19
		return catalogIds;
23557 amit.gupta 20
	}
30122 amit.gupta 21
 
22
	public void setCatalogIds(List<Integer> catalogIds) {
23
		this.catalogIds = catalogIds;
23557 amit.gupta 24
	}
30122 amit.gupta 25
 
23557 amit.gupta 26
	@Override
27
	public String toString() {
30122 amit.gupta 28
		return "SchemeItems [schemeIds=" + schemeIds + ", itemIds=" + catalogIds + "]";
23557 amit.gupta 29
	}
30122 amit.gupta 30
 
23557 amit.gupta 31
	@Override
32
	public int hashCode() {
33
		final int prime = 31;
34
		int result = 1;
30122 amit.gupta 35
		result = prime * result + ((catalogIds == null) ? 0 : catalogIds.hashCode());
23557 amit.gupta 36
		result = prime * result + ((schemeIds == null) ? 0 : schemeIds.hashCode());
37
		return result;
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
		SchemeItems other = (SchemeItems) obj;
30122 amit.gupta 48
		if (catalogIds == null) {
49
			if (other.catalogIds != null)
23557 amit.gupta 50
				return false;
30122 amit.gupta 51
		} else if (!catalogIds.equals(other.catalogIds))
23557 amit.gupta 52
			return false;
53
		if (schemeIds == null) {
54
			if (other.schemeIds != null)
55
				return false;
56
		} else if (!schemeIds.equals(other.schemeIds))
57
			return false;
58
		return true;
59
	}
60
 
61
}