Subversion Repositories SmartDukaan

Rev

Rev 21600 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21600 Rev 21923
Line 29... Line 29...
29
		return status;
29
		return status;
30
	}
30
	}
31
	public void setStatus(String status) {
31
	public void setStatus(String status) {
32
		this.status = status;
32
		this.status = status;
33
	}
33
	}
-
 
34
	
-
 
35
	
-
 
36
	@Override
-
 
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
	}
34
	@Override
77
	@Override
35
	public String toString() {
78
	public String toString() {
36
		return "ShippedOrder [status=" + status + ", billingDetail=" + billingDetail + ", shipppingDetail="
79
		return "ShippedOrder [status=" + status + ", billingDetail=" + billingDetail + ", shipppingDetail="
37
				+ shipppingDetail + ", lineItems=" + lineItems + "]";
80
				+ shipppingDetail + ", lineItems=" + lineItems + "]";
38
	}
81
	}