Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.cart;

import java.util.List;

public class CartModel {
        private List<CartItemModel> itemModels; 
        private boolean isUpdated;
        @Override
        public String toString() {
                return "CartModel [itemModels=" + itemModels + ", isUpdated=" + isUpdated + "]";
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + (isUpdated ? 1231 : 1237);
                result = prime * result + ((itemModels == null) ? 0 : itemModels.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;
                CartModel other = (CartModel) obj;
                if (isUpdated != other.isUpdated)
                        return false;
                if (itemModels == null) {
                        if (other.itemModels != null)
                                return false;
                } else if (!itemModels.equals(other.itemModels))
                        return false;
                return true;
        }
        public List<CartItemModel> getItemModels() {
                return itemModels;
        }
        public void setItemModels(List<CartItemModel> itemModels) {
                this.itemModels = itemModels;
        }
        public boolean isUpdated() {
                return isUpdated;
        }
        public void setUpdated(boolean isUpdated) {
                this.isUpdated = isUpdated;
        }
        
        
        
        
}