Subversion Repositories SmartDukaan

Rev

Rev 18454 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package in.shop2020.metamodel.util;

public class QtyPricePojo {
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result
                                + ((quantity == null) ? 0 : quantity.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;
                QtyPricePojo other = (QtyPricePojo) obj;
                if (quantity == null) {
                        if (other.quantity != null)
                                return false;
                } else if (!quantity.equals(other.quantity))
                        return false;
                return true;
        }
        private Long quantity;
        private Double price;
        public void setQuantity(Long quantity) {
                this.quantity = quantity;
        }
        public Long getQuantity() {
                return quantity;
        }
        public void setPrice(Double price) {
                this.price = price;
        }
        public Double getPrice() {
                return price;
        }
        @Override
        public String toString() {
                return "QtyPricePojo [quantity=" + quantity + ", price=" + price + "]";
        }
        
}