@@ -396,7 +396,7 @@ private constructor(
396
396
return true
397
397
}
398
398
399
- return /* spotless:off */ other is Status && this . value == other.value /* spotless:on */
399
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
400
400
}
401
401
402
402
override fun hashCode () = value.hashCode()
@@ -1208,23 +1208,20 @@ private constructor(
1208
1208
return true
1209
1209
}
1210
1210
1211
- return /* spotless:off */ other is Value && this . number == other.number && this . bool == other.bool && this . string == other.string && this . strings == other.strings /* spotless:on */
1211
+ return /* spotless:off */ other is Value && number == other.number && bool == other.bool && string == other.string && strings == other.strings /* spotless:on */
1212
1212
}
1213
1213
1214
- override fun hashCode (): Int {
1215
- return /* spotless:off */ Objects .hash(number, bool, string, strings) /* spotless:on */
1216
- }
1214
+ override fun hashCode (): Int = /* spotless:off */ Objects .hash(number, bool, string, strings) /* spotless:on */
1217
1215
1218
- override fun toString (): String {
1219
- return when {
1216
+ override fun toString (): String =
1217
+ when {
1220
1218
number != null -> " Value{number=$number }"
1221
1219
bool != null -> " Value{bool=$bool }"
1222
1220
string != null -> " Value{string=$string }"
1223
1221
strings != null -> " Value{strings=$strings }"
1224
1222
_json != null -> " Value{_unknown=$_json }"
1225
1223
else -> throw IllegalStateException (" Invalid Value" )
1226
1224
}
1227
- }
1228
1225
1229
1226
companion object {
1230
1227
@@ -1298,17 +1295,14 @@ private constructor(
1298
1295
return true
1299
1296
}
1300
1297
1301
- return /* spotless:off */ other is Threshold && this . measurement == other.measurement && this . insightName == other.insightName && this . insightParameters == other.insightParameters && this . operator == other.operator && this . value == other.value && this . additionalProperties == other.additionalProperties /* spotless:on */
1298
+ return /* spotless:off */ other is Threshold && measurement == other.measurement && insightName == other.insightName && insightParameters == other.insightParameters && operator == other.operator && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
1302
1299
}
1303
1300
1304
- private var hashCode: Int = 0
1301
+ /* spotless:off */
1302
+ private val hashCode: Int by lazy { Objects .hash(measurement, insightName, insightParameters, operator , value, additionalProperties) }
1303
+ /* spotless:on */
1305
1304
1306
- override fun hashCode (): Int {
1307
- if (hashCode == 0 ) {
1308
- hashCode = /* spotless:off */ Objects .hash(measurement, insightName, insightParameters, operator , value, additionalProperties) /* spotless:on */
1309
- }
1310
- return hashCode
1311
- }
1305
+ override fun hashCode (): Int = hashCode
1312
1306
1313
1307
override fun toString () =
1314
1308
" Threshold{measurement=$measurement , insightName=$insightName , insightParameters=$insightParameters , operator=$operator , value=$value , additionalProperties=$additionalProperties }"
@@ -1319,17 +1313,14 @@ private constructor(
1319
1313
return true
1320
1314
}
1321
1315
1322
- return /* spotless:off */ other is Goal && this.id == other.id && this.number == other.number && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.description == other.description && this.evaluationWindow == other.evaluationWindow && this.delayWindow == other.delayWindow && this.type == other.type && this.subtype == other.subtype && this.creatorId == other.creatorId && this.originProjectVersionId == other.originProjectVersionId && this.thresholds == other.thresholds && this.archived == other.archived && this.dateArchived == other.dateArchived && this.suggested == other.suggested && this.commentCount == other.commentCount && this.usesMlModel == other.usesMlModel && this.usesValidationDataset == other.usesValidationDataset && this.usesTrainingDataset == other.usesTrainingDataset && this.usesReferenceDataset == other.usesReferenceDataset && this.usesProductionData == other.usesProductionData && this.additionalProperties == other.additionalProperties /* spotless:on */
1316
+ return /* spotless:off */ other is Goal && id == other.id && number == other.number && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && description == other.description && evaluationWindow == other.evaluationWindow && delayWindow == other.delayWindow && type == other.type && subtype == other.subtype && creatorId == other.creatorId && originProjectVersionId == other.originProjectVersionId && thresholds == other.thresholds && archived == other.archived && dateArchived == other.dateArchived && suggested == other.suggested && commentCount == other.commentCount && usesMlModel == other.usesMlModel && usesValidationDataset == other.usesValidationDataset && usesTrainingDataset == other.usesTrainingDataset && usesReferenceDataset == other.usesReferenceDataset && usesProductionData == other.usesProductionData && additionalProperties == other.additionalProperties /* spotless:on */
1323
1317
}
1324
1318
1325
- private var hashCode: Int = 0
1319
+ /* spotless:off */
1320
+ private val hashCode: Int by lazy { Objects .hash(id, number, name, dateCreated, dateUpdated, description, evaluationWindow, delayWindow, type, subtype, creatorId, originProjectVersionId, thresholds, archived, dateArchived, suggested, commentCount, usesMlModel, usesValidationDataset, usesTrainingDataset, usesReferenceDataset, usesProductionData, additionalProperties) }
1321
+ /* spotless:on */
1326
1322
1327
- override fun hashCode (): Int {
1328
- if (hashCode == 0 ) {
1329
- hashCode = /* spotless:off */ Objects .hash(id, number, name, dateCreated, dateUpdated, description, evaluationWindow, delayWindow, type, subtype, creatorId, originProjectVersionId, thresholds, archived, dateArchived, suggested, commentCount, usesMlModel, usesValidationDataset, usesTrainingDataset, usesReferenceDataset, usesProductionData, additionalProperties) /* spotless:on */
1330
- }
1331
- return hashCode
1332
- }
1323
+ override fun hashCode (): Int = hashCode
1333
1324
1334
1325
override fun toString () =
1335
1326
" Goal{id=$id , number=$number , name=$name , dateCreated=$dateCreated , dateUpdated=$dateUpdated , description=$description , evaluationWindow=$evaluationWindow , delayWindow=$delayWindow , type=$type , subtype=$subtype , creatorId=$creatorId , originProjectVersionId=$originProjectVersionId , thresholds=$thresholds , archived=$archived , dateArchived=$dateArchived , suggested=$suggested , commentCount=$commentCount , usesMlModel=$usesMlModel , usesValidationDataset=$usesValidationDataset , usesTrainingDataset=$usesTrainingDataset , usesReferenceDataset=$usesReferenceDataset , usesProductionData=$usesProductionData , additionalProperties=$additionalProperties }"
@@ -1340,17 +1331,14 @@ private constructor(
1340
1331
return true
1341
1332
}
1342
1333
1343
- return /* spotless:off */ other is Item && this . id == other.id && this . goal == other.goal && this . goalId == other.goalId && this . projectVersionId == other.projectVersionId && this . inferencePipelineId == other.inferencePipelineId && this . dateCreated == other.dateCreated && this . dateUpdated == other.dateUpdated && this . dateDataStarts == other.dateDataStarts && this . dateDataEnds == other.dateDataEnds && this . status == other.status && this . statusMessage == other.statusMessage && this . additionalProperties == other.additionalProperties /* spotless:on */
1334
+ return /* spotless:off */ other is Item && id == other.id && goal == other.goal && goalId == other.goalId && projectVersionId == other.projectVersionId && inferencePipelineId == other.inferencePipelineId && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && dateDataStarts == other.dateDataStarts && dateDataEnds == other.dateDataEnds && status == other.status && statusMessage == other.statusMessage && additionalProperties == other.additionalProperties /* spotless:on */
1344
1335
}
1345
1336
1346
- private var hashCode: Int = 0
1337
+ /* spotless:off */
1338
+ private val hashCode: Int by lazy { Objects .hash(id, goal, goalId, projectVersionId, inferencePipelineId, dateCreated, dateUpdated, dateDataStarts, dateDataEnds, status, statusMessage, additionalProperties) }
1339
+ /* spotless:on */
1347
1340
1348
- override fun hashCode (): Int {
1349
- if (hashCode == 0 ) {
1350
- hashCode = /* spotless:off */ Objects .hash(id, goal, goalId, projectVersionId, inferencePipelineId, dateCreated, dateUpdated, dateDataStarts, dateDataEnds, status, statusMessage, additionalProperties) /* spotless:on */
1351
- }
1352
- return hashCode
1353
- }
1341
+ override fun hashCode (): Int = hashCode
1354
1342
1355
1343
override fun toString () =
1356
1344
" Item{id=$id , goal=$goal , goalId=$goalId , projectVersionId=$projectVersionId , inferencePipelineId=$inferencePipelineId , dateCreated=$dateCreated , dateUpdated=$dateUpdated , dateDataStarts=$dateDataStarts , dateDataEnds=$dateDataEnds , status=$status , statusMessage=$statusMessage , additionalProperties=$additionalProperties }"
@@ -1361,17 +1349,14 @@ private constructor(
1361
1349
return true
1362
1350
}
1363
1351
1364
- return /* spotless:off */ other is CommitTestResultListResponse && this . items == other.items && this . additionalProperties == other.additionalProperties /* spotless:on */
1352
+ return /* spotless:off */ other is CommitTestResultListResponse && items == other.items && additionalProperties == other.additionalProperties /* spotless:on */
1365
1353
}
1366
1354
1367
- private var hashCode: Int = 0
1355
+ /* spotless:off */
1356
+ private val hashCode: Int by lazy { Objects .hash(items, additionalProperties) }
1357
+ /* spotless:on */
1368
1358
1369
- override fun hashCode (): Int {
1370
- if (hashCode == 0 ) {
1371
- hashCode = /* spotless:off */ Objects .hash(items, additionalProperties) /* spotless:on */
1372
- }
1373
- return hashCode
1374
- }
1359
+ override fun hashCode (): Int = hashCode
1375
1360
1376
1361
override fun toString () =
1377
1362
" CommitTestResultListResponse{items=$items , additionalProperties=$additionalProperties }"
0 commit comments