Subversion Repositories SmartDukaan

Rev

Rev 21923 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

public class GstRate {
        
        private float igstRate;
        private float cgstRate;
        private float sgstRate;
        private String hsnCode;
        
        
        public float getIgstRate() {
                return igstRate;
        }
        public void setIgstRate(float igstRate) {
                this.igstRate = igstRate;
        }
        public float getCgstRate() {
                return cgstRate;
        }
        public void setCgstRate(float cgstRate) {
                this.cgstRate = cgstRate;
        }
        public float getSgstRate() {
                return sgstRate;
        }
        public void setSgstRate(float sgstRate) {
                this.sgstRate = sgstRate;
        }
        public String getHsnCode() {
                return hsnCode;
        }
        public void setHsnCode(String hsnCode) {
                this.hsnCode = hsnCode;
        }
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + Float.floatToIntBits(cgstRate);
                result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());
                result = prime * result + Float.floatToIntBits(igstRate);
                result = prime * result + Float.floatToIntBits(sgstRate);
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                GstRate other = (GstRate) obj;
                if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
                        return false;
                if (hsnCode == null) {
                        if (other.hsnCode != null)
                                return false;
                } else if (!hsnCode.equals(other.hsnCode))
                        return false;
                if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))
                        return false;
                if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "GstRate [igstRate=" + igstRate + ", cgstRate=" + cgstRate + ", sgstRate=" + sgstRate + ", hsnCode="
                                + hsnCode + "]";
        }
        
}