6
6
import java .util .List ;
7
7
8
8
public class CodegenParameter {
9
- public Boolean isFormParam , isQueryParam , isPathParam , isHeaderParam ,
9
+ public boolean isFormParam , isQueryParam , isPathParam , isHeaderParam ,
10
10
isCookieParam , isBodyParam , hasMore , isContainer ,
11
11
secondaryParam , isCollectionFormatMulti , isPrimitiveType ;
12
- public String baseName , paramName , dataType , datatypeWithEnum , dataFormat , collectionFormat , description , unescapedDescription , baseType , defaultValue , enumName ;
12
+ public String baseName , paramName , dataType , datatypeWithEnum , dataFormat ,
13
+ collectionFormat , description , unescapedDescription , baseType , defaultValue , enumName ;
13
14
public String example ; // example value (x-example)
14
15
public String jsonSchema ;
15
- public Boolean isString , isInteger , isLong , isFloat , isDouble , isByteArray , isBinary , isBoolean , isDate , isDateTime ;
16
- public Boolean isListContainer , isMapContainer ;
17
- public Boolean isFile , notFile ;
16
+ public boolean isString , isInteger , isLong , isFloat , isDouble , isByteArray , isBinary , isBoolean , isDate , isDateTime ;
17
+ public boolean isListContainer , isMapContainer ;
18
+ public boolean isFile , notFile ;
18
19
public boolean isEnum ;
19
20
public List <String > _enum ;
20
21
public Map <String , Object > allowableValues ;
21
22
public CodegenProperty items ;
22
23
public Map <String , Object > vendorExtensions ;
23
- public Boolean hasValidation ;
24
+ public boolean hasValidation ;
24
25
25
26
/**
26
27
* Determines whether this parameter is mandatory. If the parameter is in "path",
27
28
* this property is required and its value MUST be true. Otherwise, the property
28
29
* MAY be included and its default value is false.
29
30
*/
30
- public Boolean required ;
31
+ public boolean required ;
31
32
32
33
/**
33
34
* See http://json-schema.org/latest/json-schema-validation.html#anchor17.
@@ -36,15 +37,15 @@ public class CodegenParameter {
36
37
/**
37
38
* See http://json-schema.org/latest/json-schema-validation.html#anchor17
38
39
*/
39
- public Boolean exclusiveMaximum ;
40
+ public boolean exclusiveMaximum ;
40
41
/**
41
42
* See http://json-schema.org/latest/json-schema-validation.html#anchor21
42
43
*/
43
44
public String minimum ;
44
45
/**
45
46
* See http://json-schema.org/latest/json-schema-validation.html#anchor21
46
47
*/
47
- public Boolean exclusiveMinimum ;
48
+ public boolean exclusiveMinimum ;
48
49
/**
49
50
* See http://json-schema.org/latest/json-schema-validation.html#anchor26
50
51
*/
@@ -68,7 +69,7 @@ public class CodegenParameter {
68
69
/**
69
70
* See http://json-schema.org/latest/json-schema-validation.html#anchor49
70
71
*/
71
- public Boolean uniqueItems ;
72
+ public boolean uniqueItems ;
72
73
/**
73
74
* See http://json-schema.org/latest/json-schema-validation.html#anchor14
74
75
*/
@@ -156,27 +157,27 @@ public boolean equals(Object o) {
156
157
CodegenParameter that = (CodegenParameter ) o ;
157
158
158
159
if (isEnum != that .isEnum ) return false ;
159
- if (isFormParam != null ? ! isFormParam . equals ( that .isFormParam ) : that . isFormParam != null )
160
+ if (isFormParam != that .isFormParam )
160
161
return false ;
161
- if (isQueryParam != null ? ! isQueryParam . equals ( that .isQueryParam ) : that . isQueryParam != null )
162
+ if (isQueryParam != that .isQueryParam )
162
163
return false ;
163
- if (isPathParam != null ? ! isPathParam . equals ( that .isPathParam ) : that . isPathParam != null )
164
+ if (isPathParam != that .isPathParam )
164
165
return false ;
165
- if (isHeaderParam != null ? ! isHeaderParam . equals ( that .isHeaderParam ) : that . isHeaderParam != null )
166
+ if (isHeaderParam != that .isHeaderParam )
166
167
return false ;
167
- if (isCookieParam != null ? ! isCookieParam . equals ( that .isCookieParam ) : that . isCookieParam != null )
168
+ if (isCookieParam != that .isCookieParam )
168
169
return false ;
169
- if (isBodyParam != null ? ! isBodyParam . equals ( that .isBodyParam ) : that . isBodyParam != null )
170
+ if (isBodyParam != that .isBodyParam )
170
171
return false ;
171
- if (hasMore != null ? ! hasMore . equals ( that .hasMore ) : that . hasMore != null )
172
+ if (hasMore != that .hasMore )
172
173
return false ;
173
- if (isContainer != null ? ! isContainer . equals ( that .isContainer ) : that . isContainer != null )
174
+ if (isContainer != that .isContainer )
174
175
return false ;
175
- if (secondaryParam != null ? ! secondaryParam . equals ( that .secondaryParam ) : that . secondaryParam != null )
176
+ if (secondaryParam != that .secondaryParam )
176
177
return false ;
177
- if (isCollectionFormatMulti != null ? ! isCollectionFormatMulti . equals ( that .isCollectionFormatMulti ) : that . isCollectionFormatMulti != null )
178
+ if (isCollectionFormatMulti != that .isCollectionFormatMulti )
178
179
return false ;
179
- if (isPrimitiveType != null ? ! isPrimitiveType . equals ( that .isPrimitiveType ) : that . isPrimitiveType != null )
180
+ if (isPrimitiveType != that .isPrimitiveType )
180
181
return false ;
181
182
if (baseName != null ? !baseName .equals (that .baseName ) : that .baseName != null )
182
183
return false ;
@@ -204,33 +205,33 @@ public boolean equals(Object o) {
204
205
return false ;
205
206
if (jsonSchema != null ? !jsonSchema .equals (that .jsonSchema ) : that .jsonSchema != null )
206
207
return false ;
207
- if (isString != null ? ! isString . equals ( that .isString ) : that . isString != null )
208
+ if (isString != that .isString )
208
209
return false ;
209
- if (isInteger != null ? ! isInteger . equals ( that .isInteger ) : that . isInteger != null )
210
+ if (isInteger != that .isInteger )
210
211
return false ;
211
- if (isLong != null ? ! isLong . equals ( that .isLong ) : that . isLong != null )
212
+ if (isLong != that .isLong )
212
213
return false ;
213
- if (isFloat != null ? ! isFloat . equals ( that .isFloat ) : that . isFloat != null )
214
+ if (isFloat != that .isFloat )
214
215
return false ;
215
- if (isDouble != null ? ! isDouble . equals ( that .isDouble ) : that . isDouble != null )
216
+ if (isDouble != that .isDouble )
216
217
return false ;
217
- if (isByteArray != null ? ! isByteArray . equals ( that .isByteArray ) : that . isByteArray != null )
218
+ if (isByteArray != that .isByteArray )
218
219
return false ;
219
- if (isBinary != null ? ! isBinary . equals ( that .isBinary ) : that . isBinary != null )
220
+ if (isBinary != that .isBinary )
220
221
return false ;
221
- if (isBoolean != null ? ! isBoolean . equals ( that .isBoolean ) : that . isBoolean != null )
222
+ if (isBoolean != that .isBoolean )
222
223
return false ;
223
- if (isDate != null ? ! isDate . equals ( that .isDate ) : that . isDate != null )
224
+ if (isDate != that .isDate )
224
225
return false ;
225
- if (isDateTime != null ? ! isDateTime . equals ( that .isDateTime ) : that . isDateTime != null )
226
+ if (isDateTime != that .isDateTime )
226
227
return false ;
227
- if (isListContainer != null ? ! isListContainer . equals ( that .isListContainer ) : that . isListContainer != null )
228
+ if (isListContainer != that .isListContainer )
228
229
return false ;
229
- if (isMapContainer != null ? ! isMapContainer . equals ( that .isMapContainer ) : that . isMapContainer != null )
230
+ if (isMapContainer != that .isMapContainer )
230
231
return false ;
231
- if (isFile != null ? ! isFile . equals ( that .isFile ) : that . isFile != null )
232
+ if (isFile != that .isFile )
232
233
return false ;
233
- if (notFile != null ? ! notFile . equals ( that .notFile ) : that . notFile != null )
234
+ if (notFile != that .notFile )
234
235
return false ;
235
236
if (_enum != null ? !_enum .equals (that ._enum ) : that ._enum != null )
236
237
return false ;
@@ -240,17 +241,17 @@ public boolean equals(Object o) {
240
241
return false ;
241
242
if (vendorExtensions != null ? !vendorExtensions .equals (that .vendorExtensions ) : that .vendorExtensions != null )
242
243
return false ;
243
- if (hasValidation != null ? ! hasValidation . equals ( that .hasValidation ) : that . hasValidation != null )
244
+ if (hasValidation != that .hasValidation )
244
245
return false ;
245
- if (required != null ? ! required . equals ( that .required ) : that . required != null )
246
+ if (required != that .required )
246
247
return false ;
247
248
if (maximum != null ? !maximum .equals (that .maximum ) : that .maximum != null )
248
249
return false ;
249
- if (exclusiveMaximum != null ? ! exclusiveMaximum . equals ( that .exclusiveMaximum ) : that . exclusiveMaximum != null )
250
+ if (exclusiveMaximum != that .exclusiveMaximum )
250
251
return false ;
251
252
if (minimum != null ? !minimum .equals (that .minimum ) : that .minimum != null )
252
253
return false ;
253
- if (exclusiveMinimum != null ? ! exclusiveMinimum . equals ( that .exclusiveMinimum ) : that . exclusiveMinimum != null )
254
+ if (exclusiveMinimum != that .exclusiveMinimum )
254
255
return false ;
255
256
if (maxLength != null ? !maxLength .equals (that .maxLength ) : that .maxLength != null )
256
257
return false ;
@@ -262,25 +263,25 @@ public boolean equals(Object o) {
262
263
return false ;
263
264
if (minItems != null ? !minItems .equals (that .minItems ) : that .minItems != null )
264
265
return false ;
265
- if (uniqueItems != null ? ! uniqueItems . equals ( that .uniqueItems ) : that . uniqueItems != null )
266
+ if (uniqueItems != that .uniqueItems )
266
267
return false ;
267
268
return multipleOf != null ? multipleOf .equals (that .multipleOf ) : that .multipleOf == null ;
268
269
269
270
}
270
271
271
272
@ Override
272
273
public int hashCode () {
273
- int result = isFormParam != null ? isFormParam . hashCode () : 0 ;
274
- result = 31 * result + (isQueryParam != null ? isQueryParam . hashCode () : 0 );
275
- result = 31 * result + (isPathParam != null ? isPathParam . hashCode () : 0 );
276
- result = 31 * result + (isHeaderParam != null ? isHeaderParam . hashCode () : 0 );
277
- result = 31 * result + (isCookieParam != null ? isCookieParam . hashCode () : 0 );
278
- result = 31 * result + (isBodyParam != null ? isBodyParam . hashCode () : 0 );
279
- result = 31 * result + (hasMore != null ? hasMore . hashCode () : 0 );
280
- result = 31 * result + (isContainer != null ? isContainer . hashCode () : 0 );
281
- result = 31 * result + (secondaryParam != null ? secondaryParam . hashCode () : 0 );
282
- result = 31 * result + (isCollectionFormatMulti != null ? isCollectionFormatMulti . hashCode () : 0 );
283
- result = 31 * result + (isPrimitiveType != null ? isPrimitiveType . hashCode () : 0 );
274
+ int result = isFormParam ? 13 : 31 ;
275
+ result = 31 * result + (isQueryParam ? 13 : 31 );
276
+ result = 31 * result + (isPathParam ? 13 : 31 );
277
+ result = 31 * result + (isHeaderParam ? 13 : 31 );
278
+ result = 31 * result + (isCookieParam ? 13 : 31 );
279
+ result = 31 * result + (isBodyParam ? 13 : 31 );
280
+ result = 31 * result + (hasMore ? 13 : 31 );
281
+ result = 31 * result + (isContainer ? 13 : 31 );
282
+ result = 31 * result + (secondaryParam ? 13 : 31 );
283
+ result = 31 * result + (isCollectionFormatMulti ? 13 : 31 );
284
+ result = 31 * result + (isPrimitiveType ? 13 : 31 );
284
285
result = 31 * result + (baseName != null ? baseName .hashCode () : 0 );
285
286
result = 31 * result + (paramName != null ? paramName .hashCode () : 0 );
286
287
result = 31 * result + (dataType != null ? dataType .hashCode () : 0 );
@@ -294,37 +295,37 @@ public int hashCode() {
294
295
result = 31 * result + (defaultValue != null ? defaultValue .hashCode () : 0 );
295
296
result = 31 * result + (example != null ? example .hashCode () : 0 );
296
297
result = 31 * result + (jsonSchema != null ? jsonSchema .hashCode () : 0 );
297
- result = 31 * result + (isString != null ? isString . hashCode () : 0 );
298
- result = 31 * result + (isInteger != null ? isInteger . hashCode () : 0 );
299
- result = 31 * result + (isLong != null ? isLong . hashCode () : 0 );
300
- result = 31 * result + (isFloat != null ? isFloat . hashCode () : 0 );
301
- result = 31 * result + (isDouble != null ? isDouble . hashCode () : 0 );
302
- result = 31 * result + (isByteArray != null ? isByteArray . hashCode () : 0 );
303
- result = 31 * result + (isBinary != null ? isBinary . hashCode () : 0 );
304
- result = 31 * result + (isBoolean != null ? isBoolean . hashCode () : 0 );
305
- result = 31 * result + (isDate != null ? isDate . hashCode () : 0 );
306
- result = 31 * result + (isDateTime != null ? isDateTime . hashCode () : 0 );
307
- result = 31 * result + (isListContainer != null ? isListContainer . hashCode () : 0 );
308
- result = 31 * result + (isMapContainer != null ? isMapContainer . hashCode () : 0 );
309
- result = 31 * result + (isFile != null ? isFile . hashCode () : 0 );
310
- result = 31 * result + (notFile != null ? notFile . hashCode () : 0 );
298
+ result = 31 * result + (isString ? 13 : 31 );
299
+ result = 31 * result + (isInteger ? 13 : 31 );
300
+ result = 31 * result + (isLong ? 13 : 31 );
301
+ result = 31 * result + (isFloat ? 13 : 31 );
302
+ result = 31 * result + (isDouble ? 13 : 31 );
303
+ result = 31 * result + (isByteArray ? 13 : 31 );
304
+ result = 31 * result + (isBinary ? 13 : 31 );
305
+ result = 31 * result + (isBoolean ? 13 : 31 );
306
+ result = 31 * result + (isDate ? 13 : 31 );
307
+ result = 31 * result + (isDateTime ? 13 : 31 );
308
+ result = 31 * result + (isListContainer ? 13 : 31 );
309
+ result = 31 * result + (isMapContainer ? 13 : 31 );
310
+ result = 31 * result + (isFile ? 13 : 31 );
311
+ result = 31 * result + (notFile ? 13 : 31 );
311
312
result = 31 * result + (isEnum ? 1 : 0 );
312
313
result = 31 * result + (_enum != null ? _enum .hashCode () : 0 );
313
314
result = 31 * result + (allowableValues != null ? allowableValues .hashCode () : 0 );
314
315
result = 31 * result + (items != null ? items .hashCode () : 0 );
315
316
result = 31 * result + (vendorExtensions != null ? vendorExtensions .hashCode () : 0 );
316
- result = 31 * result + (hasValidation != null ? hasValidation . hashCode () : 0 );
317
- result = 31 * result + (required != null ? required . hashCode () : 0 );
317
+ result = 31 * result + (hasValidation ? 13 : 31 );
318
+ result = 31 * result + (required ? 13 : 31 );
318
319
result = 31 * result + (maximum != null ? maximum .hashCode () : 0 );
319
- result = 31 * result + (exclusiveMaximum != null ? exclusiveMaximum . hashCode () : 0 );
320
+ result = 31 * result + (exclusiveMaximum ? 13 : 31 );
320
321
result = 31 * result + (minimum != null ? minimum .hashCode () : 0 );
321
- result = 31 * result + (exclusiveMinimum != null ? exclusiveMinimum . hashCode () : 0 );
322
+ result = 31 * result + (exclusiveMinimum ? 13 : 31 );
322
323
result = 31 * result + (maxLength != null ? maxLength .hashCode () : 0 );
323
324
result = 31 * result + (minLength != null ? minLength .hashCode () : 0 );
324
325
result = 31 * result + (pattern != null ? pattern .hashCode () : 0 );
325
326
result = 31 * result + (maxItems != null ? maxItems .hashCode () : 0 );
326
327
result = 31 * result + (minItems != null ? minItems .hashCode () : 0 );
327
- result = 31 * result + (uniqueItems != null ? uniqueItems . hashCode () : 0 );
328
+ result = 31 * result + (uniqueItems ? 13 : 31 );
328
329
result = 31 * result + (multipleOf != null ? multipleOf .hashCode () : 0 );
329
330
return result ;
330
331
}
0 commit comments