Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

/**
 * @author ashikali
 *
 */
public class ItemIdSum {
        private int itemId;
        private long sumOfQuantity;
        
        public int getItemId() {
                return itemId;
        }
        public void setItemId(int itemId) {
                this.itemId = itemId;
        }
        public long getSumOfQuantity() {
                return sumOfQuantity;
        }
        public void setSumOfQuantity(long sumOfQuantity) {
                this.sumOfQuantity = sumOfQuantity;
        }
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + itemId;
                result = prime * result + (int) (sumOfQuantity ^ (sumOfQuantity >>> 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;
                ItemIdSum other = (ItemIdSum) obj;
                if (itemId != other.itemId)
                        return false;
                if (sumOfQuantity != other.sumOfQuantity)
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "ItemIdSum [itemId=" + itemId + ", sumOfQuantity=" + sumOfQuantity + "]";
        }
        
}