| Line 10... |
Line 10... |
| 10 |
private CustomRetailer retailer;
|
10 |
private CustomRetailer retailer;
|
| 11 |
private String invoiceNumber;
|
11 |
private String invoiceNumber;
|
| 12 |
private String invoiceDate;
|
12 |
private String invoiceDate;
|
| 13 |
private Set<CustomOrderItem> orderItems;
|
13 |
private Set<CustomOrderItem> orderItems;
|
| 14 |
private Set<CustomInsurancePolicy> insurancePolicies;
|
14 |
private Set<CustomInsurancePolicy> insurancePolicies;
|
| - |
|
15 |
private List<CustomPaymentOption> paymentOptions;
|
| 15 |
private List<String> tncs;
|
16 |
private List<String> tncs;
|
| 16 |
private float totalAmount;
|
17 |
private float totalAmount;
|
| 17 |
public String getTitle() {
|
18 |
public String getTitle() {
|
| 18 |
return title;
|
19 |
return title;
|
| 19 |
}
|
20 |
}
|
| Line 66... |
Line 67... |
| 66 |
public int hashCode() {
|
67 |
public int hashCode() {
|
| 67 |
final int prime = 31;
|
68 |
final int prime = 31;
|
| 68 |
int result = 1;
|
69 |
int result = 1;
|
| 69 |
result = prime * result + ((auther == null) ? 0 : auther.hashCode());
|
70 |
result = prime * result + ((auther == null) ? 0 : auther.hashCode());
|
| 70 |
result = prime * result + ((customer == null) ? 0 : customer.hashCode());
|
71 |
result = prime * result + ((customer == null) ? 0 : customer.hashCode());
|
| - |
|
72 |
result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
|
| - |
|
73 |
result = prime * result + ((invoiceDate == null) ? 0 : invoiceDate.hashCode());
|
| 71 |
result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
|
74 |
result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
|
| 72 |
result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
|
75 |
result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
|
| 73 |
result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
|
76 |
result = prime * result + ((paymentOptions == null) ? 0 : paymentOptions.hashCode());
|
| 74 |
result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
|
77 |
result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
|
| 75 |
result = prime * result + ((title == null) ? 0 : title.hashCode());
|
78 |
result = prime * result + ((title == null) ? 0 : title.hashCode());
|
| - |
|
79 |
result = prime * result + ((tncs == null) ? 0 : tncs.hashCode());
|
| 76 |
result = prime * result + Float.floatToIntBits(totalAmount);
|
80 |
result = prime * result + Float.floatToIntBits(totalAmount);
|
| 77 |
return result;
|
81 |
return result;
|
| 78 |
}
|
82 |
}
|
| 79 |
@Override
|
83 |
@Override
|
| 80 |
public boolean equals(Object obj) {
|
84 |
public boolean equals(Object obj) {
|
| Line 93... |
Line 97... |
| 93 |
if (customer == null) {
|
97 |
if (customer == null) {
|
| 94 |
if (other.customer != null)
|
98 |
if (other.customer != null)
|
| 95 |
return false;
|
99 |
return false;
|
| 96 |
} else if (!customer.equals(other.customer))
|
100 |
} else if (!customer.equals(other.customer))
|
| 97 |
return false;
|
101 |
return false;
|
| - |
|
102 |
if (insurancePolicies == null) {
|
| - |
|
103 |
if (other.insurancePolicies != null)
|
| - |
|
104 |
return false;
|
| - |
|
105 |
} else if (!insurancePolicies.equals(other.insurancePolicies))
|
| - |
|
106 |
return false;
|
| - |
|
107 |
if (invoiceDate == null) {
|
| - |
|
108 |
if (other.invoiceDate != null)
|
| - |
|
109 |
return false;
|
| - |
|
110 |
} else if (!invoiceDate.equals(other.invoiceDate))
|
| - |
|
111 |
return false;
|
| 98 |
if (invoiceNumber == null) {
|
112 |
if (invoiceNumber == null) {
|
| 99 |
if (other.invoiceNumber != null)
|
113 |
if (other.invoiceNumber != null)
|
| 100 |
return false;
|
114 |
return false;
|
| 101 |
} else if (!invoiceNumber.equals(other.invoiceNumber))
|
115 |
} else if (!invoiceNumber.equals(other.invoiceNumber))
|
| 102 |
return false;
|
116 |
return false;
|
| 103 |
if (orderItems == null) {
|
117 |
if (orderItems == null) {
|
| 104 |
if (other.orderItems != null)
|
118 |
if (other.orderItems != null)
|
| 105 |
return false;
|
119 |
return false;
|
| 106 |
} else if (!orderItems.equals(other.orderItems))
|
120 |
} else if (!orderItems.equals(other.orderItems))
|
| 107 |
return false;
|
121 |
return false;
|
| 108 |
if (insurancePolicies == null) {
|
122 |
if (paymentOptions == null) {
|
| 109 |
if (other.insurancePolicies != null)
|
123 |
if (other.paymentOptions != null)
|
| 110 |
return false;
|
124 |
return false;
|
| 111 |
} else if (!insurancePolicies.equals(other.insurancePolicies))
|
125 |
} else if (!paymentOptions.equals(other.paymentOptions))
|
| 112 |
return false;
|
126 |
return false;
|
| 113 |
if (retailer == null) {
|
127 |
if (retailer == null) {
|
| 114 |
if (other.retailer != null)
|
128 |
if (other.retailer != null)
|
| 115 |
return false;
|
129 |
return false;
|
| 116 |
} else if (!retailer.equals(other.retailer))
|
130 |
} else if (!retailer.equals(other.retailer))
|
| Line 118... |
Line 132... |
| 118 |
if (title == null) {
|
132 |
if (title == null) {
|
| 119 |
if (other.title != null)
|
133 |
if (other.title != null)
|
| 120 |
return false;
|
134 |
return false;
|
| 121 |
} else if (!title.equals(other.title))
|
135 |
} else if (!title.equals(other.title))
|
| 122 |
return false;
|
136 |
return false;
|
| - |
|
137 |
if (tncs == null) {
|
| - |
|
138 |
if (other.tncs != null)
|
| - |
|
139 |
return false;
|
| - |
|
140 |
} else if (!tncs.equals(other.tncs))
|
| - |
|
141 |
return false;
|
| 123 |
if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
|
142 |
if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
|
| 124 |
return false;
|
143 |
return false;
|
| 125 |
return true;
|
144 |
return true;
|
| 126 |
}
|
145 |
}
|
| 127 |
@Override
|
146 |
@Override
|
| 128 |
public String toString() {
|
147 |
public String toString() {
|
| 129 |
return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
|
148 |
return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
|
| 130 |
+ ", invoiceNumber=" + invoiceNumber + ", orderItems=" + orderItems + ", insurancePolicies="
|
149 |
+ ", invoiceNumber=" + invoiceNumber + ", invoiceDate=" + invoiceDate + ", orderItems=" + orderItems
|
| - |
|
150 |
+ ", insurancePolicies=" + insurancePolicies + ", paymentOptions=" + paymentOptions + ", tncs=" + tncs
|
| 131 |
+ insurancePolicies + ", totalAmount=" + totalAmount + "]";
|
151 |
+ ", totalAmount=" + totalAmount + "]";
|
| 132 |
}
|
152 |
}
|
| 133 |
public String getInvoiceDate() {
|
153 |
public String getInvoiceDate() {
|
| 134 |
return invoiceDate;
|
154 |
return invoiceDate;
|
| 135 |
}
|
155 |
}
|
| 136 |
public void setInvoiceDate(String invoiceDate) {
|
156 |
public void setInvoiceDate(String invoiceDate) {
|
| Line 140... |
Line 160... |
| 140 |
return tncs;
|
160 |
return tncs;
|
| 141 |
}
|
161 |
}
|
| 142 |
public void setTncs(List<String> tncs) {
|
162 |
public void setTncs(List<String> tncs) {
|
| 143 |
this.tncs = tncs;
|
163 |
this.tncs = tncs;
|
| 144 |
}
|
164 |
}
|
| - |
|
165 |
public List<CustomPaymentOption> getPaymentOptions() {
|
| - |
|
166 |
return paymentOptions;
|
| - |
|
167 |
}
|
| - |
|
168 |
public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
|
| - |
|
169 |
this.paymentOptions = paymentOptions;
|
| - |
|
170 |
}
|
| 145 |
|
171 |
|
| 146 |
|
172 |
|
| 147 |
|
173 |
|
| 148 |
}
|
174 |
}
|