| 21543 |
ashik.ali |
1 |
package com.spice.profitmandi.common.model;
|
|
|
2 |
|
|
|
3 |
public class BillingDetail {
|
|
|
4 |
private String invoiceNumber;
|
|
|
5 |
private String airwayBillNumber;
|
|
|
6 |
private float totalAmount;
|
|
|
7 |
public String getInvoiceNumber() {
|
|
|
8 |
return invoiceNumber;
|
|
|
9 |
}
|
|
|
10 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
11 |
this.invoiceNumber = invoiceNumber;
|
|
|
12 |
}
|
|
|
13 |
public String getAirwayBillNumber() {
|
|
|
14 |
return airwayBillNumber;
|
|
|
15 |
}
|
|
|
16 |
public void setAirwayBillNumber(String airwayBillNumber) {
|
|
|
17 |
this.airwayBillNumber = airwayBillNumber;
|
|
|
18 |
}
|
|
|
19 |
public float getTotalAmount() {
|
|
|
20 |
return totalAmount;
|
|
|
21 |
}
|
|
|
22 |
public void setTotalAmount(float totalAmount) {
|
|
|
23 |
this.totalAmount = totalAmount;
|
|
|
24 |
}
|
| 21923 |
ashik.ali |
25 |
|
|
|
26 |
|
| 21600 |
ashik.ali |
27 |
@Override
|
| 21923 |
ashik.ali |
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 |
}
|
|
|
59 |
@Override
|
| 21600 |
ashik.ali |
60 |
public String toString() {
|
|
|
61 |
return "BillingDetail [invoiceNumber=" + invoiceNumber + ", airwayBillNumber=" + airwayBillNumber
|
|
|
62 |
+ ", totalAmount=" + totalAmount + "]";
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
|
| 21543 |
ashik.ali |
66 |
}
|