diff --git a/lib/src/main/kotlin/at/bitfire/synctools/storage/BatchOperation.kt b/lib/src/main/kotlin/at/bitfire/synctools/storage/BatchOperation.kt index 67147b9d..f90e23c9 100644 --- a/lib/src/main/kotlin/at/bitfire/synctools/storage/BatchOperation.kt +++ b/lib/src/main/kotlin/at/bitfire/synctools/storage/BatchOperation.kt @@ -233,11 +233,13 @@ open class BatchOperation internal constructor( private var selection: String? = null private var selectionArguments: Array? = null - internal val values = mutableMapOf() + private val _values = mutableMapOf() + val values + get() = _values.toMap() + internal val valueBackrefs = mutableMapOf() - @VisibleForTesting - internal var yieldAllowed = false + private var yieldAllowed = false fun withSelection(select: String, args: Array): CpoBuilder { @@ -258,7 +260,7 @@ open class BatchOperation internal constructor( } fun withValue(key: String, value: Any?): CpoBuilder { - values[key] = value + _values[key] = value return this }