Subversion Repositories SmartDukaan

Rev

Rev 30122 | 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
 
36396 amit 3
import java.time.LocalDateTime;
23557 amit.gupta 4
import java.util.List;
5
 
6
public class SchemeItems {
7
	private List<Integer> schemeIds;
30122 amit.gupta 8
	private List<Integer> catalogIds;
36396 amit 9
	private LocalDateTime startDate;
10
	private LocalDateTime endDate;
30122 amit.gupta 11
 
12
 
23557 amit.gupta 13
	public List<Integer> getSchemeIds() {
14
		return schemeIds;
15
	}
30122 amit.gupta 16
 
23557 amit.gupta 17
	public void setSchemeIds(List<Integer> schemeIds) {
18
		this.schemeIds = schemeIds;
19
	}
30122 amit.gupta 20
 
21
	public List<Integer> getCatalogIds() {
22
		return catalogIds;
23557 amit.gupta 23
	}
30122 amit.gupta 24
 
25
	public void setCatalogIds(List<Integer> catalogIds) {
26
		this.catalogIds = catalogIds;
23557 amit.gupta 27
	}
30122 amit.gupta 28
 
36396 amit 29
	public LocalDateTime getStartDate() {
30
		return startDate;
31
	}
32
 
33
	public void setStartDate(LocalDateTime startDate) {
34
		this.startDate = startDate;
35
	}
36
 
37
	public LocalDateTime getEndDate() {
38
		return endDate;
39
	}
40
 
41
	public void setEndDate(LocalDateTime endDate) {
42
		this.endDate = endDate;
43
	}
44
 
23557 amit.gupta 45
	@Override
46
	public String toString() {
30122 amit.gupta 47
		return "SchemeItems [schemeIds=" + schemeIds + ", itemIds=" + catalogIds + "]";
23557 amit.gupta 48
	}
30122 amit.gupta 49
 
23557 amit.gupta 50
	@Override
51
	public int hashCode() {
52
		final int prime = 31;
53
		int result = 1;
30122 amit.gupta 54
		result = prime * result + ((catalogIds == null) ? 0 : catalogIds.hashCode());
23557 amit.gupta 55
		result = prime * result + ((schemeIds == null) ? 0 : schemeIds.hashCode());
56
		return result;
57
	}
58
	@Override
59
	public boolean equals(Object obj) {
60
		if (this == obj)
61
			return true;
62
		if (obj == null)
63
			return false;
64
		if (getClass() != obj.getClass())
65
			return false;
66
		SchemeItems other = (SchemeItems) obj;
30122 amit.gupta 67
		if (catalogIds == null) {
68
			if (other.catalogIds != null)
23557 amit.gupta 69
				return false;
30122 amit.gupta 70
		} else if (!catalogIds.equals(other.catalogIds))
23557 amit.gupta 71
			return false;
72
		if (schemeIds == null) {
73
			if (other.schemeIds != null)
74
				return false;
75
		} else if (!schemeIds.equals(other.schemeIds))
76
			return false;
77
		return true;
78
	}
79
 
80
}