Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28493 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
public class MarginCalculatorModel {
4
 
5
 
6
	private String MTD;
7
	private String LMTD;
8
	private String YTD;
9
 
10
	public String getMTD() {
11
		return MTD;
12
	}
13
	public void setMTD(String mTD) {
14
		MTD = mTD;
15
	}
16
	public String getLMTD() {
17
		return LMTD;
18
	}
19
	public void setLMTD(String lMTD) {
20
		LMTD = lMTD;
21
	}
22
	public String getYTD() {
23
		return YTD;
24
	}
25
	public void setYTD(String yTD) {
26
		YTD = yTD;
27
	}
28
	@Override
29
	public String toString() {
30
		return "MarginCalculatorModel [MTD=" + MTD + ", LMTD=" + LMTD + ", YTD=" + YTD + "]";
31
	}
32
	@Override
33
	public int hashCode() {
34
		final int prime = 31;
35
		int result = 1;
36
		result = prime * result + ((LMTD == null) ? 0 : LMTD.hashCode());
37
		result = prime * result + ((MTD == null) ? 0 : MTD.hashCode());
38
		result = prime * result + ((YTD == null) ? 0 : YTD.hashCode());
39
		return result;
40
	}
41
	@Override
42
	public boolean equals(Object obj) {
43
		if (this == obj)
44
			return true;
45
		if (obj == null)
46
			return false;
47
		if (getClass() != obj.getClass())
48
			return false;
49
		MarginCalculatorModel other = (MarginCalculatorModel) obj;
50
		if (LMTD == null) {
51
			if (other.LMTD != null)
52
				return false;
53
		} else if (!LMTD.equals(other.LMTD))
54
			return false;
55
		if (MTD == null) {
56
			if (other.MTD != null)
57
				return false;
58
		} else if (!MTD.equals(other.MTD))
59
			return false;
60
		if (YTD == null) {
61
			if (other.YTD != null)
62
				return false;
63
		} else if (!YTD.equals(other.YTD))
64
			return false;
65
		return true;
66
	}
67
	public MarginCalculatorModel() {
68
		super();
69
		// TODO Auto-generated constructor stub
70
	}
71
	public MarginCalculatorModel(String mTD, String lMTD, String yTD) {
72
		super();
73
		MTD = mTD;
74
		LMTD = lMTD;
75
		YTD = yTD;
76
	}
77
 
78
 
79
 
80
}