Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.common.model;

import java.util.Set;

public class ShippedOrder {
        private String status;
        private BillingDetail billingDetail;
        private ShipppingDetail shipppingDetail;
        private Set<CustomLineItem> lineItems;
        public Set<CustomLineItem> getLineItems() {
                return lineItems;
        }
        public void setLineItems(Set<CustomLineItem> lineItems) {
                this.lineItems = lineItems;
        }
        public BillingDetail getBillingDetail() {
                return billingDetail;
        }
        public void setBillingDetail(BillingDetail billingDetail) {
                this.billingDetail = billingDetail;
        }
        public ShipppingDetail getShipppingDetail() {
                return shipppingDetail;
        }
        public void setShipppingDetail(ShipppingDetail shipppingDetail) {
                this.shipppingDetail = shipppingDetail;
        }
        public String getStatus() {
                return status;
        }
        public void setStatus(String status) {
                this.status = status;
        }
        
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((billingDetail == null) ? 0 : billingDetail.hashCode());
                result = prime * result + ((lineItems == null) ? 0 : lineItems.hashCode());
                result = prime * result + ((shipppingDetail == null) ? 0 : shipppingDetail.hashCode());
                result = prime * result + ((status == null) ? 0 : status.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;
                ShippedOrder other = (ShippedOrder) obj;
                if (billingDetail == null) {
                        if (other.billingDetail != null)
                                return false;
                } else if (!billingDetail.equals(other.billingDetail))
                        return false;
                if (lineItems == null) {
                        if (other.lineItems != null)
                                return false;
                } else if (!lineItems.equals(other.lineItems))
                        return false;
                if (shipppingDetail == null) {
                        if (other.shipppingDetail != null)
                                return false;
                } else if (!shipppingDetail.equals(other.shipppingDetail))
                        return false;
                if (status == null) {
                        if (other.status != null)
                                return false;
                } else if (!status.equals(other.status))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "ShippedOrder [status=" + status + ", billingDetail=" + billingDetail + ", shipppingDetail="
                                + shipppingDetail + ", lineItems=" + lineItems + "]";
        }
        
        
}