Skip to content

Commit 5ee35a5

Browse files
committed
JavaDocs for initialDbFile
1 parent 3387d3e commit 5ee35a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

objectbox-java/src/main/java/io/objectbox/BoxStoreBuilder.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ public BoxStoreBuilder failedReadTxAttemptCallback(TxCallback failedReadTxAttemp
317317
return this;
318318
}
319319

320+
/**
321+
* Let's you specify an DB file to be used during initial start of the app (no DB file exists yet).
322+
*/
320323
@Experimental
321324
public BoxStoreBuilder initialDbFile(final File initialDbFile) {
322325
return initialDbFile(new Factory<InputStream>() {
@@ -327,6 +330,10 @@ public InputStream provide() throws FileNotFoundException {
327330
});
328331
}
329332

333+
/**
334+
* Let's you specify a provider for a DB file to be used during initial start of the app (no DB file exists yet).
335+
* The provider will only be called if no DB file exists yet.
336+
*/
330337
@Experimental
331338
public BoxStoreBuilder initialDbFile(Factory<InputStream> initialDbFileFactory) {
332339
this.initialDbFileFactory = initialDbFileFactory;

0 commit comments

Comments
 (0)