Skip to content

Commit 875fcde

Browse files
BoxStore: move subscribe methods together.
1 parent cef8ce6 commit 875fcde

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)