@@ -129,8 +129,8 @@ class QueryDsl<T : ContractState> internal constructor(
129
129
* @param values The [ContractState] types to apply to the query criteria.
130
130
*/
131
131
@QueryDslContext
132
- fun contractStateTypes (values : Iterable <Class <out T >>) {
133
- commonQueryCriteria.contractStateTypes = values.toSet()
132
+ fun contractStateTypes (values : Iterable <Class <out T >>? ) {
133
+ commonQueryCriteria.contractStateTypes = values? .toSet()
134
134
criteria = criteria.updateQueryCriteria()
135
135
}
136
136
@@ -150,8 +150,8 @@ class QueryDsl<T : ContractState> internal constructor(
150
150
* @param values The exact [AbstractParty] participants to apply to the query.
151
151
*/
152
152
@QueryDslContext
153
- fun exactParticipants (values : Iterable <AbstractParty >) {
154
- commonQueryCriteria.exactParticipants = values.toList()
153
+ fun exactParticipants (values : Iterable <AbstractParty >? ) {
154
+ commonQueryCriteria.exactParticipants = values? .toList()
155
155
criteria = criteria.updateQueryCriteria()
156
156
}
157
157
@@ -171,8 +171,8 @@ class QueryDsl<T : ContractState> internal constructor(
171
171
* @param values The participant [AbstractParty] instances to apply to the query criteria.
172
172
*/
173
173
@QueryDslContext
174
- fun participants (values : Iterable <AbstractParty >) {
175
- commonQueryCriteria.participants = values.toList()
174
+ fun participants (values : Iterable <AbstractParty >? ) {
175
+ commonQueryCriteria.participants = values? .toList()
176
176
criteria = criteria.updateQueryCriteria()
177
177
}
178
178
@@ -225,8 +225,8 @@ class QueryDsl<T : ContractState> internal constructor(
225
225
* @param values The [String] instances to apply to the query criteria.
226
226
*/
227
227
@QueryDslContext
228
- fun externalIds (values : Iterable <String ?> ) {
229
- val criteriaToAdd = LinearStateQueryCriteria (externalId = values.filterNotNull ())
228
+ fun externalIds (values : Iterable <String > ? ) {
229
+ val criteriaToAdd = LinearStateQueryCriteria (externalId = values?.toList ())
230
230
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
231
231
}
232
232
@@ -236,7 +236,7 @@ class QueryDsl<T : ContractState> internal constructor(
236
236
* @param values The [String] instances to apply to the query criteria.
237
237
*/
238
238
@QueryDslContext
239
- fun externalIds (vararg values : String? ) {
239
+ fun externalIds (vararg values : String ) {
240
240
externalIds(values.toList())
241
241
}
242
242
@@ -246,8 +246,8 @@ class QueryDsl<T : ContractState> internal constructor(
246
246
* @param values The [UniqueIdentifier] instances to apply to the query criteria.
247
247
*/
248
248
@QueryDslContext
249
- fun linearIds (values : Iterable <UniqueIdentifier >) {
250
- val criteriaToAdd = LinearStateQueryCriteria (linearId = values.toList())
249
+ fun linearIds (values : Iterable <UniqueIdentifier >? ) {
250
+ val criteriaToAdd = LinearStateQueryCriteria (linearId = values? .toList())
251
251
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
252
252
}
253
253
@@ -267,8 +267,8 @@ class QueryDsl<T : ContractState> internal constructor(
267
267
* @param values The [AbstractParty] issuers of [FungibleAsset] states to apply to the query criteria.
268
268
*/
269
269
@QueryDslContext
270
- fun issuers (values : Iterable <AbstractParty >) {
271
- val criteriaToAdd = FungibleAssetQueryCriteria (issuer = values.toList())
270
+ fun issuers (values : Iterable <AbstractParty >? ) {
271
+ val criteriaToAdd = FungibleAssetQueryCriteria (issuer = values? .toList())
272
272
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
273
273
}
274
274
@@ -288,8 +288,8 @@ class QueryDsl<T : ContractState> internal constructor(
288
288
* @param values The [AbstractParty] issuer refs of [FungibleAsset] states to apply to the query criteria.
289
289
*/
290
290
@QueryDslContext
291
- fun issuerRefs (values : Iterable <OpaqueBytes >) {
292
- val criteriaToAdd = FungibleAssetQueryCriteria (issuerRef = values.toList())
291
+ fun issuerRefs (values : Iterable <OpaqueBytes >? ) {
292
+ val criteriaToAdd = FungibleAssetQueryCriteria (issuerRef = values? .toList())
293
293
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
294
294
}
295
295
@@ -309,8 +309,8 @@ class QueryDsl<T : ContractState> internal constructor(
309
309
* @param values The notary [AbstractParty] instances to apply to the query criteria.
310
310
*/
311
311
@QueryDslContext
312
- fun notaries (values : Iterable <AbstractParty >) {
313
- val criteriaToAdd = VaultQueryCriteria (notary = values.toList())
312
+ fun notaries (values : Iterable <AbstractParty >? ) {
313
+ val criteriaToAdd = VaultQueryCriteria (notary = values? .toList())
314
314
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
315
315
}
316
316
@@ -330,8 +330,8 @@ class QueryDsl<T : ContractState> internal constructor(
330
330
* @param values The [AbstractParty] owners of [FungibleAsset] states to apply to the query criteria.
331
331
*/
332
332
@QueryDslContext
333
- fun owners (values : Iterable <AbstractParty >) {
334
- val criteriaToAdd = FungibleAssetQueryCriteria (owner = values.toList())
333
+ fun owners (values : Iterable <AbstractParty >? ) {
334
+ val criteriaToAdd = FungibleAssetQueryCriteria (owner = values? .toList())
335
335
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
336
336
}
337
337
@@ -351,7 +351,7 @@ class QueryDsl<T : ContractState> internal constructor(
351
351
* @param value The [ColumnPredicate] that determines the quantity of a [FungibleAsset] to apply to the query criteria.
352
352
*/
353
353
@QueryDslContext
354
- fun fungibleAssetQuantity (value : ColumnPredicate <Long >) {
354
+ fun fungibleAssetQuantity (value : ColumnPredicate <Long >? ) {
355
355
val criteriaToAdd = FungibleAssetQueryCriteria (quantity = value)
356
356
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
357
357
}
@@ -362,7 +362,7 @@ class QueryDsl<T : ContractState> internal constructor(
362
362
* @param value The [ColumnPredicate] that determines the quantity of a [FungibleState] to apply to the query criteria.
363
363
*/
364
364
@QueryDslContext
365
- fun fungibleStateQuantity (value : ColumnPredicate <Long >) {
365
+ fun fungibleStateQuantity (value : ColumnPredicate <Long >? ) {
366
366
val criteriaToAdd = FungibleStateQueryCriteria (quantity = value)
367
367
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
368
368
}
@@ -373,7 +373,7 @@ class QueryDsl<T : ContractState> internal constructor(
373
373
* @param value The [SoftLockingCondition] to apply to the query criteria.
374
374
*/
375
375
@QueryDslContext
376
- fun softLockingCondition (value : SoftLockingCondition ) {
376
+ fun softLockingCondition (value : SoftLockingCondition ? ) {
377
377
val criteriaToAdd = VaultQueryCriteria (softLockingCondition = value)
378
378
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
379
379
}
@@ -384,8 +384,8 @@ class QueryDsl<T : ContractState> internal constructor(
384
384
* @param values The [StateRef] instances to apply to the query criteria.
385
385
*/
386
386
@QueryDslContext
387
- fun stateRefs (values : Iterable <StateRef >) {
388
- val criteriaToAdd = VaultQueryCriteria (stateRefs = values.toList())
387
+ fun stateRefs (values : Iterable <StateRef >? ) {
388
+ val criteriaToAdd = VaultQueryCriteria (stateRefs = values? .toList())
389
389
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
390
390
}
391
391
@@ -405,7 +405,7 @@ class QueryDsl<T : ContractState> internal constructor(
405
405
* @param value The [TimeCondition] to apply to the query criteria.
406
406
*/
407
407
@QueryDslContext
408
- fun timeCondition (value : TimeCondition ) {
408
+ fun timeCondition (value : TimeCondition ? ) {
409
409
val criteriaToAdd = VaultQueryCriteria (timeCondition = value)
410
410
criteria = criteria.and (criteriaToAdd.updateQueryCriteria())
411
411
}
0 commit comments