GeezerVison is showing github.com — Cursor: add collectStringList · zhoupan/objectbox-java@4a40b55
File tree
Expand file treeCollapse file tree
Open diff view settings
objectbox-java/src/main/java/io/objectbox
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/Cursor.java +9-6Lines changed: 9 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
16 | 16 |
|
17 | 17 | package io.objectbox; |
18 | 18 |
|
19 | | -import java.io.Closeable; |
20 | | -import java.util.List; |
21 | | - |
22 | | -import javax.annotation.Nullable; |
23 | | -import javax.annotation.concurrent.NotThreadSafe; |
24 | | - |
25 | 19 | import io.objectbox.annotation.apihint.Beta; |
26 | 20 | import io.objectbox.annotation.apihint.Internal; |
27 | 21 | import io.objectbox.internal.CursorFactory; |
28 | 22 | import io.objectbox.relation.ToMany; |
29 | 23 |
|
| 24 | +import javax.annotation.Nullable; |
| 25 | +import javax.annotation.concurrent.NotThreadSafe; |
| 26 | +import java.io.Closeable; |
| 27 | +import java.util.List; |
| 28 | + |
30 | 29 | @SuppressWarnings({"unchecked", "SameParameterValue", "unused", "WeakerAccess", "UnusedReturnValue"}) |
31 | 30 | @Beta |
32 | 31 | @Internal |
@@ -110,6 +109,10 @@ protected static native long collectStringArray(long cursor, long keyIfComplete, |
110 | 109 | int idStringArray, String[] stringArray |
111 | 110 | ); |
112 | 111 |
|
| 112 | + protected static native long collectStringList(long cursor, long keyIfComplete, int flags, |
| 113 | + int idStringList, List<String> stringList |
| 114 | + ); |
| 115 | + |
113 | 116 | native int nativePropertyId(long cursor, String propertyValue); |
114 | 117 |
|
115 | 118 | native List<T> nativeGetBacklinkEntities(long cursor, int entityId, int propertyId, long key); |
|