@configurator/ravendb
Version:
RavenDB client for Node.js
24 lines • 852 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompareExchangeValue = void 0;
const MetadataAsDictionary_1 = require("../../../Mapping/MetadataAsDictionary");
class CompareExchangeValue {
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_1.MetadataDictionary.create();
}
return this._metadataAsDictionary;
}
hasMetadata() {
return !!this._metadataAsDictionary;
}
}
exports.CompareExchangeValue = CompareExchangeValue;
//# sourceMappingURL=CompareExchangeValue.js.map