Skip to content

Commit a15933c

Browse files
Boolean arrays: support collecting in Cursor #265
1 parent 1a9d829 commit a15933c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 ObjectBox Ltd. All rights reserved.
2+
* Copyright 2017-2025 ObjectBox Ltd. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,16 +16,17 @@
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+
1925
import io.objectbox.annotation.apihint.Beta;
2026
import io.objectbox.annotation.apihint.Internal;
2127
import io.objectbox.internal.CursorFactory;
2228
import io.objectbox.relation.ToMany;
2329

24-
import javax.annotation.Nullable;
25-
import javax.annotation.concurrent.NotThreadSafe;
26-
import java.io.Closeable;
27-
import java.util.List;
28-
2930
@SuppressWarnings({"unchecked", "SameParameterValue", "unused", "WeakerAccess", "UnusedReturnValue"})
3031
@Beta
3132
@Internal
@@ -115,6 +116,9 @@ protected static native long collectStringList(long cursor, long keyIfComplete,
115116
);
116117

117118
// INTEGER ARRAYS
119+
protected static native long collectBooleanArray(long cursor, long keyIfComplete, int flags,
120+
int propertyId, @Nullable boolean[] value);
121+
118122
protected static native long collectShortArray(long cursor, long keyIfComplete, int flags,
119123
int propertyId, @Nullable short[] value);
120124

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy