Skip to content

Commit 4a40b55

Browse files
Cursor: add collectStringList
1 parent 2e9fac5 commit 4a40b55

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,16 @@
1616

1717
package io.objectbox;
1818

19-
import java.io.Closeable;
20-
import java.util.List;
21-
22-
import javax.annotation.Nullable;
23-
import javax.annotation.concurrent.NotThreadSafe;
24-
2519
import io.objectbox.annotation.apihint.Beta;
2620
import io.objectbox.annotation.apihint.Internal;
2721
import io.objectbox.internal.CursorFactory;
2822
import io.objectbox.relation.ToMany;
2923

24+
import javax.annotation.Nullable;
25+
import javax.annotation.concurrent.NotThreadSafe;
26+
import java.io.Closeable;
27+
import java.util.List;
28+
3029
@SuppressWarnings({"unchecked", "SameParameterValue", "unused", "WeakerAccess", "UnusedReturnValue"})
3130
@Beta
3231
@Internal
@@ -110,6 +109,10 @@ protected static native long collectStringArray(long cursor, long keyIfComplete,
110109
int idStringArray, String[] stringArray
111110
);
112111

112+
protected static native long collectStringList(long cursor, long keyIfComplete, int flags,
113+
int idStringList, List<String> stringList
114+
);
115+
113116
native int nativePropertyId(long cursor, String propertyValue);
114117

115118
native List<T> nativeGetBacklinkEntities(long cursor, int entityId, int propertyId, long key);

0 commit comments

Comments
 (0)