Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

import java.util.List;

public class ItemTypeParams {
        private List<Integer> catalogId;
        private List<String> brands;
        private int categoryId;

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((brands == null) ? 0 : brands.hashCode());
                result = prime * result + ((catalogId == null) ? 0 : catalogId.hashCode());
                result = prime * result + categoryId;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                ItemTypeParams other = (ItemTypeParams) obj;
                if (brands == null) {
                        if (other.brands != null)
                                return false;
                } else if (!brands.equals(other.brands))
                        return false;
                if (catalogId == null) {
                        if (other.catalogId != null)
                                return false;
                } else if (!catalogId.equals(other.catalogId))
                        return false;
                if (categoryId != other.categoryId)
                        return false;
                return true;
        }

        public int getCategoryId() {
                return categoryId;
        }

        public void setCategoryId(int categoryId) {
                this.categoryId = categoryId;
        }

        public ItemTypeParams(List<Integer> catalogId, List<String> brands) {
                super();
                this.catalogId = catalogId;
                this.brands = brands;
        }

        public ItemTypeParams() {
                super();
        }

        public List<Integer> getCatalogId() {
                return catalogId;
        }

        public void setCatalogId(List<Integer> catalogId) {
                this.catalogId = catalogId;
        }

        public List<String> getBrands() {
                return brands;
        }

        public void setBrands(List<String> brands) {
                this.brands = brands;
        }

        @Override
        public String toString() {
                return "ItemTypeParams [catalogId=" + catalogId + ", brands=" + brands + ", categoryId=" + categoryId + "]";
        }

}