|
17 | 17 | package io.objectbox; |
18 | 18 |
|
19 | 19 | import com.google.flatbuffers.FlatBufferBuilder; |
20 | | -import io.objectbox.model.FlatStoreOptions; |
| 20 | + |
21 | 21 | import org.greenrobot.essentials.io.IoUtils; |
22 | 22 |
|
23 | 23 | import java.io.BufferedInputStream; |
|
39 | 39 | import io.objectbox.annotation.apihint.Internal; |
40 | 40 | import io.objectbox.exception.DbException; |
41 | 41 | import io.objectbox.ideasonly.ModelUpdate; |
| 42 | +import io.objectbox.model.FlatStoreOptions; |
42 | 43 | import io.objectbox.model.ValidateOnOpenMode; |
43 | 44 |
|
44 | 45 | /** |
45 | | - * Builds a {@link BoxStore} with optional configurations. The class is not initiated directly; use |
46 | | - * MyObjectBox.builder() to get an instance. |
| 46 | + * Configures and builds a {@link BoxStore} with reasonable defaults. To get an instance use {@code MyObjectBox.builder()}. |
47 | 47 | * <p> |
48 | | - * Each configuration has reasonable defaults, which you can adjust. |
49 | | - * For Android, you must pass a Context using {@link #androidContext(Object)}. |
| 48 | + * On Android, make sure to provide a Context to {@link #androidContext(Object) androidContext(context)}. |
50 | 49 | * <p> |
51 | | - * Configurations you can override: |
| 50 | + * Some common defaults to override are: |
52 | 51 | * <ol> |
53 | | - * <li>Name/location of DB: use {@link #name(String)}/{@link #baseDirectory}/{@link #androidContext(Object)} |
54 | | - * OR {@link #directory(File)}(default: name "objectbox)</li> |
55 | | - * <li>Max DB size: see {@link #maxSizeInKByte} (default: 1 GB)</li> |
56 | | - * <li>Max readers: see {@link #maxReaders(int)} (default: 126)</li> |
| 52 | + * <li>Name/location of Store: use either {@link #name(String)}, {@link #baseDirectory(File)}, |
| 53 | + * {@link #androidContext(Object)} or {@link #directory(File)} (default: name "objectbox),</li> |
| 54 | + * <li>Max DB size: see {@link #maxSizeInKByte(long)} (default: 1024 * 1024 KB = 1 GB),</li> |
| 55 | + * <li>Max readers: see {@link #maxReaders(int)} (default: 126),</li> |
57 | 56 | * </ol> |
58 | 57 | */ |
59 | 58 | public class BoxStoreBuilder { |
|