UNPKG

ravendb

Version:
29 lines 937 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CompareExchangeValue = void 0; const MetadataAsDictionary_js_1 = require("../../../Mapping/MetadataAsDictionary.js"); class CompareExchangeValue { key; index; value; changeVector; _metadataAsDictionary; constructor(key, index, value, changeVector, metadata) { this.key = key; this.index = index; this.value = value; this.changeVector = changeVector; this._metadataAsDictionary = metadata; } get metadata() { if (!this._metadataAsDictionary) { this._metadataAsDictionary = MetadataAsDictionary_js_1.MetadataDictionary.create(); } return this._metadataAsDictionary; } hasMetadata() { return !!this._metadataAsDictionary; } } exports.CompareExchangeValue = CompareExchangeValue; //# sourceMappingURL=CompareExchangeValue.js.map