Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

public class PaymentOptionModel {
        private String paymentMethod;
        private String paymentMethodDesctiption;
        private double surcharge;
        private boolean comingSoon=false;
        @Override
        public String toString() {
                return "PaymentOptionModel [paymentMethod=" + paymentMethod + ", paymentMethodDesctiption="
                                + paymentMethodDesctiption + ", surcharge=" + surcharge + ", comingSoon=" + comingSoon + "]";
        }
        public String getPaymentMethod() {
                return paymentMethod;
        }
        
        
        public double getSurcharge() {
                return surcharge;
        }
        public void setSurcharge(double surcharge) {
                this.surcharge = surcharge;
        }
        public void setPaymentMethod(String paymentMethod) {
                this.paymentMethod = paymentMethod;
        }
        public String getPaymentMethodDesctiption() {
                return paymentMethodDesctiption;
        }
        public void setPaymentMethodDesctiption(String paymentMethodDesctiption) {
                this.paymentMethodDesctiption = paymentMethodDesctiption;
        }
        
        
        public boolean isComingSoon() {
                return comingSoon;
        }
        public void setComingSoon(boolean comingSoon) {
                this.comingSoon = comingSoon;
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + (comingSoon ? 1231 : 1237);
                result = prime * result + ((paymentMethod == null) ? 0 : paymentMethod.hashCode());
                result = prime * result + ((paymentMethodDesctiption == null) ? 0 : paymentMethodDesctiption.hashCode());
                long temp;
                temp = Double.doubleToLongBits(surcharge);
                result = prime * result + (int) (temp ^ (temp >>> 32));
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                PaymentOptionModel other = (PaymentOptionModel) obj;
                if (comingSoon != other.comingSoon)
                        return false;
                if (paymentMethod == null) {
                        if (other.paymentMethod != null)
                                return false;
                } else if (!paymentMethod.equals(other.paymentMethod))
                        return false;
                if (paymentMethodDesctiption == null) {
                        if (other.paymentMethodDesctiption != null)
                                return false;
                } else if (!paymentMethodDesctiption.equals(other.paymentMethodDesctiption))
                        return false;
                if (Double.doubleToLongBits(surcharge) != Double.doubleToLongBits(other.surcharge))
                        return false;
                return true;
        }
        
        
}