Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

public class MarginCalculatorModel {

        
        private String MTD;
        private String LMTD;
        private String YTD;

        public String getMTD() {
                return MTD;
        }
        public void setMTD(String mTD) {
                MTD = mTD;
        }
        public String getLMTD() {
                return LMTD;
        }
        public void setLMTD(String lMTD) {
                LMTD = lMTD;
        }
        public String getYTD() {
                return YTD;
        }
        public void setYTD(String yTD) {
                YTD = yTD;
        }
        @Override
        public String toString() {
                return "MarginCalculatorModel [MTD=" + MTD + ", LMTD=" + LMTD + ", YTD=" + YTD + "]";
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((LMTD == null) ? 0 : LMTD.hashCode());
                result = prime * result + ((MTD == null) ? 0 : MTD.hashCode());
                result = prime * result + ((YTD == null) ? 0 : YTD.hashCode());
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                MarginCalculatorModel other = (MarginCalculatorModel) obj;
                if (LMTD == null) {
                        if (other.LMTD != null)
                                return false;
                } else if (!LMTD.equals(other.LMTD))
                        return false;
                if (MTD == null) {
                        if (other.MTD != null)
                                return false;
                } else if (!MTD.equals(other.MTD))
                        return false;
                if (YTD == null) {
                        if (other.YTD != null)
                                return false;
                } else if (!YTD.equals(other.YTD))
                        return false;
                return true;
        }
        public MarginCalculatorModel() {
                super();
                // TODO Auto-generated constructor stub
        }
        public MarginCalculatorModel(String mTD, String lMTD, String yTD) {
                super();
                MTD = mTD;
                LMTD = lMTD;
                YTD = yTD;
        }
        
        
        
}