Subversion Repositories SmartDukaan

Rev

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

Rev 21600 Rev 21923
Line 20... Line 20...
20
		return totalAmount;
20
		return totalAmount;
21
	}
21
	}
22
	public void setTotalAmount(float totalAmount) {
22
	public void setTotalAmount(float totalAmount) {
23
		this.totalAmount = totalAmount;
23
		this.totalAmount = totalAmount;
24
	}
24
	}
-
 
25
	
-
 
26
	
-
 
27
	@Override
-
 
28
	public int hashCode() {
-
 
29
		final int prime = 31;
-
 
30
		int result = 1;
-
 
31
		result = prime * result + ((airwayBillNumber == null) ? 0 : airwayBillNumber.hashCode());
-
 
32
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
-
 
33
		result = prime * result + Float.floatToIntBits(totalAmount);
-
 
34
		return result;
-
 
35
	}
-
 
36
	@Override
-
 
37
	public boolean equals(Object obj) {
-
 
38
		if (this == obj)
-
 
39
			return true;
-
 
40
		if (obj == null)
-
 
41
			return false;
-
 
42
		if (getClass() != obj.getClass())
-
 
43
			return false;
-
 
44
		BillingDetail other = (BillingDetail) obj;
-
 
45
		if (airwayBillNumber == null) {
-
 
46
			if (other.airwayBillNumber != null)
-
 
47
				return false;
-
 
48
		} else if (!airwayBillNumber.equals(other.airwayBillNumber))
-
 
49
			return false;
-
 
50
		if (invoiceNumber == null) {
-
 
51
			if (other.invoiceNumber != null)
-
 
52
				return false;
-
 
53
		} else if (!invoiceNumber.equals(other.invoiceNumber))
-
 
54
			return false;
-
 
55
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
-
 
56
			return false;
-
 
57
		return true;
-
 
58
	}
25
	@Override
59
	@Override
26
	public String toString() {
60
	public String toString() {
27
		return "BillingDetail [invoiceNumber=" + invoiceNumber + ", airwayBillNumber=" + airwayBillNumber
61
		return "BillingDetail [invoiceNumber=" + invoiceNumber + ", airwayBillNumber=" + airwayBillNumber
28
				+ ", totalAmount=" + totalAmount + "]";
62
				+ ", totalAmount=" + totalAmount + "]";
29
	}
63
	}