Skip to content

Commit fe380a5

Browse files
BoxStore: explicitly mention that boxFor caches.
1 parent f1e4677 commit fe380a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,8 @@ void txCommitted(Transaction tx, @Nullable int[] entityTypeIdsAffected) {
603603

604604
/**
605605
* Returns a Box for the given type. Objects are put into (and get from) their individual Box.
606+
* <p>
607+
* Creates a Box only once and then always returns the cached instance.
606608
*/
607609
@SuppressWarnings("unchecked")
608610
public <T> Box<T> boxFor(Class<T> entityClass) {

0 commit comments

Comments
 (0)