Subversion Repositories SmartDukaan

Rev

Rev 21600 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21543 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
import java.util.Set;
4
 
5
public class ShippedOrder {
6
	private String status;
7
	private BillingDetail billingDetail;
8
	private ShipppingDetail shipppingDetail;
9
	private Set<CustomLineItem> lineItems;
10
	public Set<CustomLineItem> getLineItems() {
11
		return lineItems;
12
	}
13
	public void setLineItems(Set<CustomLineItem> lineItems) {
14
		this.lineItems = lineItems;
15
	}
16
	public BillingDetail getBillingDetail() {
17
		return billingDetail;
18
	}
19
	public void setBillingDetail(BillingDetail billingDetail) {
20
		this.billingDetail = billingDetail;
21
	}
22
	public ShipppingDetail getShipppingDetail() {
23
		return shipppingDetail;
24
	}
25
	public void setShipppingDetail(ShipppingDetail shipppingDetail) {
26
		this.shipppingDetail = shipppingDetail;
27
	}
28
	public String getStatus() {
29
		return status;
30
	}
31
	public void setStatus(String status) {
32
		this.status = status;
33
	}
21923 ashik.ali 34
 
35
 
21600 ashik.ali 36
	@Override
21923 ashik.ali 37
	public int hashCode() {
38
		final int prime = 31;
39
		int result = 1;
40
		result = prime * result + ((billingDetail == null) ? 0 : billingDetail.hashCode());
41
		result = prime * result + ((lineItems == null) ? 0 : lineItems.hashCode());
42
		result = prime * result + ((shipppingDetail == null) ? 0 : shipppingDetail.hashCode());
43
		result = prime * result + ((status == null) ? 0 : status.hashCode());
44
		return result;
45
	}
46
	@Override
47
	public boolean equals(Object obj) {
48
		if (this == obj)
49
			return true;
50
		if (obj == null)
51
			return false;
52
		if (getClass() != obj.getClass())
53
			return false;
54
		ShippedOrder other = (ShippedOrder) obj;
55
		if (billingDetail == null) {
56
			if (other.billingDetail != null)
57
				return false;
58
		} else if (!billingDetail.equals(other.billingDetail))
59
			return false;
60
		if (lineItems == null) {
61
			if (other.lineItems != null)
62
				return false;
63
		} else if (!lineItems.equals(other.lineItems))
64
			return false;
65
		if (shipppingDetail == null) {
66
			if (other.shipppingDetail != null)
67
				return false;
68
		} else if (!shipppingDetail.equals(other.shipppingDetail))
69
			return false;
70
		if (status == null) {
71
			if (other.status != null)
72
				return false;
73
		} else if (!status.equals(other.status))
74
			return false;
75
		return true;
76
	}
77
	@Override
21600 ashik.ali 78
	public String toString() {
79
		return "ShippedOrder [status=" + status + ", billingDetail=" + billingDetail + ", shipppingDetail="
80
				+ shipppingDetail + ", lineItems=" + lineItems + "]";
81
	}
82
 
83
 
21543 ashik.ali 84
}