Subversion Repositories SmartDukaan

Rev

Rev 21686 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21686 Rev 21923
Line 50... Line 50...
50
		return totalAmount;
50
		return totalAmount;
51
	}
51
	}
52
	public void setTotalAmount(float totalAmount) {
52
	public void setTotalAmount(float totalAmount) {
53
		this.totalAmount = totalAmount;
53
		this.totalAmount = totalAmount;
54
	}
54
	}
-
 
55
	@Override
-
 
56
	public int hashCode() {
-
 
57
		final int prime = 31;
-
 
58
		int result = 1;
-
 
59
		result = prime * result + ((auther == null) ? 0 : auther.hashCode());
-
 
60
		result = prime * result + ((customer == null) ? 0 : customer.hashCode());
-
 
61
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
-
 
62
		result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
-
 
63
		result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
-
 
64
		result = prime * result + ((title == null) ? 0 : title.hashCode());
-
 
65
		result = prime * result + Float.floatToIntBits(totalAmount);
-
 
66
		return result;
-
 
67
	}
-
 
68
	@Override
-
 
69
	public boolean equals(Object obj) {
-
 
70
		if (this == obj)
-
 
71
			return true;
-
 
72
		if (obj == null)
-
 
73
			return false;
-
 
74
		if (getClass() != obj.getClass())
-
 
75
			return false;
-
 
76
		PdfModel other = (PdfModel) obj;
-
 
77
		if (auther == null) {
-
 
78
			if (other.auther != null)
-
 
79
				return false;
-
 
80
		} else if (!auther.equals(other.auther))
-
 
81
			return false;
-
 
82
		if (customer == null) {
-
 
83
			if (other.customer != null)
-
 
84
				return false;
-
 
85
		} else if (!customer.equals(other.customer))
-
 
86
			return false;
-
 
87
		if (invoiceNumber == null) {
-
 
88
			if (other.invoiceNumber != null)
-
 
89
				return false;
-
 
90
		} else if (!invoiceNumber.equals(other.invoiceNumber))
-
 
91
			return false;
-
 
92
		if (orderItems == null) {
-
 
93
			if (other.orderItems != null)
-
 
94
				return false;
-
 
95
		} else if (!orderItems.equals(other.orderItems))
-
 
96
			return false;
-
 
97
		if (retailer == null) {
-
 
98
			if (other.retailer != null)
-
 
99
				return false;
-
 
100
		} else if (!retailer.equals(other.retailer))
-
 
101
			return false;
-
 
102
		if (title == null) {
-
 
103
			if (other.title != null)
-
 
104
				return false;
-
 
105
		} else if (!title.equals(other.title))
-
 
106
			return false;
-
 
107
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
-
 
108
			return false;
-
 
109
		return true;
-
 
110
	}
-
 
111
	@Override
-
 
112
	public String toString() {
-
 
113
		return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
-
 
114
				+ ", invoiceNumber=" + invoiceNumber + ", orderItems=" + orderItems + ", totalAmount=" + totalAmount
-
 
115
				+ "]";
-
 
116
	}
-
 
117
	
-
 
118
	
55
}
119
}