File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1103,6 +1103,15 @@ public SubscriptionBuilder<Class> subscribe() {
1103
1103
return new SubscriptionBuilder <>(objectClassPublisher , null );
1104
1104
}
1105
1105
1106
+ /**
1107
+ * Like {@link #subscribe()}, but wires the supplied @{@link io.objectbox.reactive.DataObserver} only to the given
1108
+ * object class for notifications.
1109
+ */
1110
+ @ SuppressWarnings ("unchecked" )
1111
+ public <T > SubscriptionBuilder <Class <T >> subscribe (Class <T > forClass ) {
1112
+ return new SubscriptionBuilder <>((DataPublisher ) objectClassPublisher , forClass );
1113
+ }
1114
+
1106
1115
@ Experimental
1107
1116
@ Nullable
1108
1117
public String startObjectBrowser () {
@@ -1189,15 +1198,6 @@ public void setDbExceptionListener(@Nullable DbExceptionListener dbExceptionList
1189
1198
nativeSetDbExceptionListener (handle , dbExceptionListener );
1190
1199
}
1191
1200
1192
- /**
1193
- * Like {@link #subscribe()}, but wires the supplied @{@link io.objectbox.reactive.DataObserver} only to the given
1194
- * object class for notifications.
1195
- */
1196
- @ SuppressWarnings ("unchecked" )
1197
- public <T > SubscriptionBuilder <Class <T >> subscribe (Class <T > forClass ) {
1198
- return new SubscriptionBuilder <>((DataPublisher ) objectClassPublisher , forClass );
1199
- }
1200
-
1201
1201
@ Internal
1202
1202
public Future <?> internalScheduleThread (Runnable runnable ) {
1203
1203
return threadPool .submit (runnable );
You can’t perform that action at this time.
0 commit comments