@@ -174,22 +174,23 @@ public static SnapshotVersion version(long versionMicros) {
174
174
}
175
175
176
176
public static Document doc (String key , long version , Map <String , Object > data ) {
177
- return new Document (
177
+ return Document . fromObjectValue (
178
178
key (key ), version (version ), wrapObject (data ), Document .DocumentState .SYNCED );
179
179
}
180
180
181
181
public static Document doc (DocumentKey key , long version , Map <String , Object > data ) {
182
- return new Document (key , version (version ), wrapObject (data ), Document .DocumentState .SYNCED );
182
+ return Document .fromObjectValue (
183
+ key , version (version ), wrapObject (data ), Document .DocumentState .SYNCED );
183
184
}
184
185
185
186
public static Document doc (
186
187
String key , long version , ObjectValue data , Document .DocumentState documentState ) {
187
- return new Document (key (key ), version (version ), data , documentState );
188
+ return Document . fromObjectValue (key (key ), version (version ), data , documentState );
188
189
}
189
190
190
191
public static Document doc (
191
192
String key , long version , Map <String , Object > data , Document .DocumentState documentState ) {
192
- return new Document (key (key ), version (version ), wrapObject (data ), documentState );
193
+ return Document . fromObjectValue (key (key ), version (version ), wrapObject (data ), documentState );
193
194
}
194
195
195
196
public static NoDocument deletedDoc (String key , long version ) {
0 commit comments