Subversion Repositories SmartDukaan

Rev

Rev 21728 | Rev 22858 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.web.request;

import com.spice.profitmandi.dao.enumuration.fofo.PaymentOptionType;

public class CustomPaymentOption {
        private PaymentOptionType type;
        private float amount;
        public PaymentOptionType getType() {
                return type;
        }
        public void setType(PaymentOptionType type) {
                this.type = type;
        }
        public float getAmount() {
                return amount;
        }
        public void setAmount(float amount) {
                this.amount = amount;
        }
        
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + Float.floatToIntBits(amount);
                result = prime * result + ((type == null) ? 0 : type.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;
                CustomPaymentOption other = (CustomPaymentOption) obj;
                if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
                        return false;
                if (type != other.type)
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "CustomPaymentOption [type=" + type + ", amount=" + amount + "]";
        }
        
        
}