Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

public class FocoSchemeOutReportModel {
                
   private String invoiceNumber;
        
        private int quantity;
        private String brand;
        
        private String modelName;
        
        private String modelNumber;
        
        private String color;
        
        private double amount;

        public String getInvoiceNumber() {
                return invoiceNumber;
        }

        public void setInvoiceNumber(String invoiceNumber) {
                this.invoiceNumber = invoiceNumber;
        }

        public int getQuantity() {
                return quantity;
        }

        public void setQuantity(int quantity) {
                this.quantity = quantity;
        }

        public String getBrand() {
                return brand;
        }

        public void setBrand(String brand) {
                this.brand = brand;
        }

        public String getModelName() {
                return modelName;
        }

        public void setModelName(String modelName) {
                this.modelName = modelName;
        }

        public String getModelNumber() {
                return modelNumber;
        }

        public void setModelNumber(String modelNumber) {
                this.modelNumber = modelNumber;
        }

        public String getColor() {
                return color;
        }

        public void setColor(String color) {
                this.color = color;
        }

        public double getAmount() {
                return amount;
        }

        public void setAmount(double amount) {
                this.amount = amount;
        }

        @Override
        public String toString() {
                return "FocoSchemeOutReportModel [invoiceNumber=" + invoiceNumber + ", quantity=" + quantity + ", brand="
                                + brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", color=" + color + ", amount="
                                + amount + "]";
        }



        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                long temp;
                temp = Double.doubleToLongBits(amount);
                result = prime * result + (int) (temp ^ (temp >>> 32));
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                result = prime * result + ((color == null) ? 0 : color.hashCode());
                result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
                result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
                result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
                result = prime * result + quantity;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                FocoSchemeOutReportModel other = (FocoSchemeOutReportModel) obj;
                if (Double.doubleToLongBits(amount) != Double.doubleToLongBits(other.amount))
                        return false;
                if (brand == null) {
                        if (other.brand != null)
                                return false;
                } else if (!brand.equals(other.brand))
                        return false;
                if (color == null) {
                        if (other.color != null)
                                return false;
                } else if (!color.equals(other.color))
                        return false;
                if (invoiceNumber == null) {
                        if (other.invoiceNumber != null)
                                return false;
                } else if (!invoiceNumber.equals(other.invoiceNumber))
                        return false;
                if (modelName == null) {
                        if (other.modelName != null)
                                return false;
                } else if (!modelName.equals(other.modelName))
                        return false;
                if (modelNumber == null) {
                        if (other.modelNumber != null)
                                return false;
                } else if (!modelNumber.equals(other.modelNumber))
                        return false;
                if (quantity != other.quantity)
                        return false;
                return true;
        }

        public FocoSchemeOutReportModel(String invoiceNumber, int quantity, String brand, String modelName,
                        String modelNumber, String color, double amount) {
                super();
                this.invoiceNumber = invoiceNumber;
                this.quantity = quantity;
                this.brand = brand;
                this.modelName = modelName;
                this.modelNumber = modelNumber;
                this.color = color;
                this.amount = amount;
        }
        
        
        
        

}