Skip to content

Commit 84a2274

Browse files
committed
Box: add docs to point out contains() is more efficient than get()
1 parent 06d10fc commit 84a2274

File tree

1 file changed

+1
-0
lines changed
  • objectbox-java/src/main/java/io/objectbox

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ public List<T> getAll() {
319319

320320
/**
321321
* Check if an object with the given ID exists in the database.
322+
* This is more efficient than a {@link #get(long)} and comparing against null.
322323
* @since 2.7
323324
* @return true if a object with the given ID was found, false otherwise
324325
*/

0 commit comments

Comments
 (0)