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() {
11031103 return new SubscriptionBuilder <>(objectClassPublisher , null );
11041104 }
11051105
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+
11061115 @ Experimental
11071116 @ Nullable
11081117 public String startObjectBrowser () {
@@ -1189,15 +1198,6 @@ public void setDbExceptionListener(@Nullable DbExceptionListener dbExceptionList
11891198 nativeSetDbExceptionListener (handle , dbExceptionListener );
11901199 }
11911200
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-
12011201 @ Internal
12021202 public Future <?> internalScheduleThread (Runnable runnable ) {
12031203 return threadPool .submit (runnable );
You can’t perform that action at this time.
0 commit comments