diff --git a/rxjava-core/src/main/java/rx/Observable.java b/rxjava-core/src/main/java/rx/Observable.java
index ce2b883764..53327b371d 100644
--- a/rxjava-core/src/main/java/rx/Observable.java
+++ b/rxjava-core/src/main/java/rx/Observable.java
@@ -130,10 +130,10 @@
* The documentation for this interface makes use of marble diagrams. The
* following legend explains these diagrams:
*
- *
+ *
*
* For more information see the
- * RxJava Wiki
+ * RxJava Wiki
*
* @param the type of the item emitted by the Observable
*/
@@ -195,7 +195,7 @@ protected Observable(OnSubscribeFunc onSubscribe) {
* in which multiple Observers will receive their notifications.
*
* For more information see the
- * RxJava Wiki
+ * RxJava Wiki
*
* @param observer the Observer
* @return a {@link Subscription} reference with which the {@link Observer}
@@ -276,7 +276,7 @@ public Subscription subscribe(Observer super T> observer) {
* Observers will receive their notifications.
*
* For more information see the
- * RxJava Wiki
+ * RxJava Wiki
*
* @param observer the Observer
* @param scheduler the {@link Scheduler} on which Observers subscribe to
@@ -478,6 +478,7 @@ public Subscription subscribe(final Action1 super T> onNext, final Action1Observable.publish() and Observable.multicast()
*/
public ConnectableObservable multicast(Subject super T, ? extends R> subject) {
return OperationMulticast.multicast(this, subject);
@@ -547,7 +548,7 @@ public Subscription onSubscribe(Observer super T> observer) {
* Creates an Observable that will execute the given function when an
* {@link Observer} subscribes to it.
*
- *
+ *
*
* Write the function you pass to create
so that it behaves as
* an Observable: It should invoke the Observer's
@@ -568,6 +569,7 @@ public Subscription onSubscribe(Observer super T> observer) {
* allow the Observer to cancel the subscription
* @return an Observable that, when an {@link Observer} subscribes to it,
* will execute the given function
+ * @see create()
*/
public static Observable create(OnSubscribeFunc func) {
return new Observable(func);
@@ -583,6 +585,7 @@ public static Observable create(OnSubscribeFunc func) {
* @return an Observable that returns no data to the {@link Observer} and
* immediately invokes the {@link Observer}'s
* {@link Observer#onCompleted() onCompleted} method
+ * @see empty()
* @see MSDN: Observable.Empty Method
*/
public static Observable empty() {
@@ -603,6 +606,7 @@ public static Observable empty() {
* immediately invokes the {@link Observer}'s
* {@link Observer#onCompleted() onCompleted} method with the
* specified scheduler
+ * @see empty()
* @see MSDN: Observable.Empty Method (IScheduler)
*/
public static Observable empty(Scheduler scheduler) {
@@ -621,6 +625,7 @@ public static Observable empty(Scheduler scheduler) {
* @return an Observable that invokes the {@link Observer}'s
* {@link Observer#onError onError} method when the Observer
* subscribes to it
+ * @see error()
* @see MSDN: Observable.Throw Method
*/
public static Observable error(Throwable exception) {
@@ -640,6 +645,7 @@ public static Observable error(Throwable exception) {
* @return an Observable that invokes the {@link Observer}'s
* {@link Observer#onError onError} method with the specified
* scheduler
+ * @see error()
* @see MSDN: Observable.Throw Method
*/
public static Observable error(Throwable exception, Scheduler scheduler) {
@@ -649,7 +655,7 @@ public static Observable error(Throwable exception, Scheduler scheduler)
/**
* Converts an {@link Iterable} sequence into an Observable.
*
- *
+ *
*
* Note: the entire iterable sequence is immediately emitted each time an
* {@link Observer} subscribes. Since this occurs before the
@@ -661,6 +667,7 @@ public static Observable error(Throwable exception, Scheduler scheduler)
* type of items to be emitted by the resulting Observable
* @return an Observable that emits each item in the source {@link Iterable}
* sequence
+ * @see from()
*/
public static Observable from(Iterable extends T> iterable) {
return create(OperationToObservableIterable.toObservableIterable(iterable));
@@ -677,6 +684,7 @@ public static Observable from(Iterable extends T> iterable) {
* type of items to be emitted by the resulting Observable
* @return an Observable that emits each item in the source {@link Iterable}
* sequence with the specified scheduler
+ * @see from()
* @see MSDN: Observable.ToObservable
*/
public static Observable from(Iterable extends T> iterable, Scheduler scheduler) {
@@ -686,7 +694,7 @@ public static Observable from(Iterable extends T> iterable, Scheduler s
/**
* Converts an Array into an Observable.
*
- *
+ *
*
* Note: the entire array is immediately emitted each time an
* {@link Observer} subscribes. Since this occurs before the
@@ -697,6 +705,7 @@ public static Observable from(Iterable extends T> iterable, Scheduler s
* @param the type of items in the Array and the type of items to be
* emitted by the resulting Observable
* @return an Observable that emits each item in the source Array
+ * @see from()
*/
public static Observable from(T[] items) {
return create(OperationToObservableIterable.toObservableIterable(Arrays.asList(items)));
@@ -705,7 +714,7 @@ public static Observable from(T[] items) {
/**
* Converts an item into an Observable that emits that item.
*
- *
+ *
*
* Note: the item is immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -716,6 +725,7 @@ public static Observable from(T[] items) {
* @param the type of the item, and the type of the item to be
* emitted by the resulting Observable
* @return an Observable that emits the item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -726,7 +736,7 @@ public static Observable from(T t1) {
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -738,6 +748,7 @@ public static Observable from(T t1) {
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -748,7 +759,7 @@ public static Observable from(T t1, T t2) {
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -761,6 +772,7 @@ public static Observable from(T t1, T t2) {
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -771,7 +783,7 @@ public static Observable from(T t1, T t2, T t3) {
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -785,6 +797,7 @@ public static Observable from(T t1, T t2, T t3) {
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -795,7 +808,7 @@ public static Observable from(T t1, T t2, T t3, T t4) {
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -810,6 +823,7 @@ public static Observable from(T t1, T t2, T t3, T t4) {
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -820,7 +834,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5) {
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -836,6 +850,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5) {
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -846,7 +861,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6) {
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -863,6 +878,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6) {
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -873,7 +889,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7) {
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -891,6 +907,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7) {
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -901,7 +918,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -920,6 +937,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -930,7 +948,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
/**
* Converts a series of items into an Observable.
*
- *
+ *
*
* Note: the items will be immediately emitted each time an {@link Observer}
* subscribes. Since this occurs before the {@link Subscription} is
@@ -950,6 +968,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
* @param the type of items, and the type of items to be emitted by the
* resulting Observable
* @return an Observable that emits each item
+ * @see from()
*/
@SuppressWarnings("unchecked")
// suppress unchecked because we are using varargs inside the method
@@ -961,7 +980,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
* Generates an Observable that emits a sequence of integers within a
* specified range.
*
- *
+ *
*
* Note: the entire range is immediately emitted each time an
* {@link Observer} subscribes. Since this occurs before the
@@ -971,6 +990,7 @@ public static Observable from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
* @param start the value of the first integer in the sequence
* @param count the number of sequential integers to generate
* @return an Observable that emits a range of sequential integers
+ * @see range()
* @see Observable.Range Method (Int32, Int32)
*/
public static Observable range(int start, int count) {
@@ -981,11 +1001,12 @@ public static Observable range(int start, int count) {
* Generates an Observable that emits a sequence of integers within a
* specified range with the specified scheduler.
*
- *
+ *
* @param start the value of the first integer in the sequence
* @param count the number of sequential integers to generate
* @param scheduler the scheduler to run the generator loop on
* @return an Observable that emits a range of sequential integers
+ * @see range()
* @see Observable.Range Method (Int32, Int32, IScheduler)
*/
public static Observable range(int start, int count, Scheduler scheduler) {
@@ -997,7 +1018,7 @@ public static Observable range(int start, int count, Scheduler schedule
* Observable for each new Observer that subscribes. That is, for each
* subscriber, the actuall Observable is determined by the factory function.
*
- *
+ *
*
* The defer operator allows you to defer or delay emitting items from an
* Observable until such time as an Observer subscribes to the Observable.
@@ -1010,6 +1031,7 @@ public static Observable range(int start, int count, Scheduler schedule
* @param the type of the items emitted by the Observable
* @return an Observable whose {@link Observer}s trigger an invocation of
* the given Observable factory function
+ * @see defer()
*/
public static Observable defer(Func0 extends Observable extends T>> observableFactory) {
return create(OperationDefer.defer(observableFactory));
@@ -1033,6 +1055,7 @@ public static Observable defer(Func0 extends Observable extends T>> o
* {@link Observer#onNext onNext} method
* @param the type of that item
* @return an Observable that emits a single item and then completes
+ * @see just()
*/
public static Observable just(T value) {
List list = new ArrayList();
@@ -1053,6 +1076,7 @@ public static Observable just(T value) {
* @param scheduler the scheduler to send the single element on
* @return an Observable that emits a single item and then completes on a
* specified scheduler
+ * @see just()
*/
public static Observable just(T value, Scheduler scheduler) {
return just(value).observeOn(scheduler);
@@ -1071,6 +1095,7 @@ public static Observable just(T value, Scheduler scheduler) {
* @return an Observable that emits items that are the result of flattening
* the items emitted by the Observables emitted by the
* {@code source} Observable
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
public static Observable merge(Observable extends Observable extends T>> source) {
@@ -1090,6 +1115,7 @@ public static Observable merge(Observable extends Observable extends
* @param t2 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1112,6 +1138,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @param t3 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1135,6 +1162,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @param t4 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1159,6 +1187,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @param t5 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1184,6 +1213,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @param t6 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1210,6 +1240,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @param t7 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1237,6 +1268,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @param t8 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1265,6 +1297,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @param t9 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see merge()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1283,6 +1316,7 @@ public static Observable merge(Observable extends T> t1, Observable e
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
public static Observable concat(Observable extends Observable extends T>> observables) {
@@ -1300,6 +1334,7 @@ public static Observable concat(Observable extends Observable extends
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1321,6 +1356,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1342,6 +1378,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1364,6 +1401,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1387,6 +1425,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1411,6 +1450,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1436,6 +1476,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1462,6 +1503,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of combining
* the items emitted by the {@code source} Observables, one after
* the other
+ * @see concat()
* @see MSDN: Observable.Concat Method
*/
@SuppressWarnings("unchecked")
@@ -1491,6 +1533,7 @@ public static Observable concat(Observable extends T> t1, Observable
* @return an Observable that emits items that are the result of flattening
* the items emitted by the Observables emitted by the
* {@code source} Observable
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
public static Observable mergeDelayError(Observable extends Observable extends T>> source) {
@@ -1518,6 +1561,7 @@ public static Observable mergeDelayError(Observable extends Observable<
* @param t2 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1548,6 +1592,7 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* @param t3 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1580,6 +1625,7 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* @param t4 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1612,6 +1658,7 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* @param t5 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1645,6 +1692,7 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* @param t6 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1679,6 +1727,7 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* @param t7 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1714,6 +1763,7 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* @param t8 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1750,6 +1800,7 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* @param t9 an Observable to be merged
* @return an Observable that emits items that are the result of flattening
* the items emitted by the {@code source} Observables
+ * @see mergeDelayError()
* @see MSDN: Observable.Merge Method
*/
@SuppressWarnings("unchecked")
@@ -1762,13 +1813,14 @@ public static Observable mergeDelayError(Observable extends T> t1, Obse
* Returns an Observable that never sends any items or notifications to an
* {@link Observer}.
*
- *
+ *
*
* This Observable is useful primarily for testing purposes.
*
* @param the type of items (not) emitted by the Observable
* @return an Observable that never sends any items or notifications to an
* {@link Observer}
+ * @see never()
*/
public static Observable never() {
return new NeverObservable();
@@ -1779,11 +1831,12 @@ public static Observable never() {
* that emits the items emitted by the most recently published of those
* Observables.
*
- *
+ *
*
* @param sequenceOfSequences the source Observable that emits Observables
* @return an Observable that emits only the items emitted by the most
* recently published Observable
+ * @see switchOnNext()
* @deprecated use {@link #switchOnNext}
*/
@Deprecated
@@ -1796,11 +1849,12 @@ public static Observable switchDo(Observable extends Observable exten
* that emits the items emitted by the most recently published of those
* Observables.
*
- *
+ *
*
* @param sequenceOfSequences the source Observable that emits Observables
* @return an Observable that emits only the items emitted by the most
* recently published Observable
+ * @see switchOnNext()
*/
public static Observable switchOnNext(Observable extends Observable extends T>> sequenceOfSequences) {
return create(OperationSwitch.switchDo(sequenceOfSequences));
@@ -1810,7 +1864,7 @@ public static Observable switchOnNext(Observable extends Observable e
* Accepts an Observable and wraps it in another Observable that ensures
* that the resulting Observable is chronologically well-behaved.
*
- *
+ *
*
* A well-behaved Observable does not interleave its invocations of the
* {@link Observer#onNext onNext}, {@link Observer#onCompleted onCompleted},
@@ -1824,6 +1878,7 @@ public static Observable switchOnNext(Observable extends Observable e
* @return an Observable that is a chronologically well-behaved version of
* the source Observable, and that synchronously notifies its
* {@link Observer}s
+ * @see synchronize()
*/
public Observable synchronize() {
return create(OperationSynchronize.synchronize(this));
@@ -1835,7 +1890,7 @@ public Observable synchronize() {
* accomplished by acquiring a mutual-exclusion lock for the object
* provided as the lock parameter.
*
- *
+ *
*
* A well-behaved Observable does not interleave its invocations of the
* {@link Observer#onNext onNext}, {@link Observer#onCompleted onCompleted},
@@ -1850,6 +1905,7 @@ public Observable synchronize() {
* @return an Observable that is a chronologically well-behaved version of
* the source Observable, and that synchronously notifies its
* {@link Observer}s
+ * @see synchronize()
*/
public Observable synchronize(Object lock) {
return create(OperationSynchronize.synchronize(this, lock));
@@ -1866,12 +1922,13 @@ public static Observable synchronize(Observable source) {
/**
* Emits an item each time interval (containing a sequential number).
*
- *
+ *
*
* @param interval interval size in time units (see below)
* @param unit time units to use for the interval size
* @return an Observable that emits an item each time interval
- * @see MSDN: Observable.Interval
+ * @see interval()
+ * @see MSDN: Observable.Interval
*/
public static Observable interval(long interval, TimeUnit unit) {
return create(OperationInterval.interval(interval, unit));
@@ -1880,13 +1937,14 @@ public static Observable interval(long interval, TimeUnit unit) {
/**
* Emits an item each time interval (containing a sequential number).
*
- *
+ *
*
* @param interval interval size in time units (see below)
* @param unit time units to use for the interval size
* @param scheduler the scheduler to use for scheduling the items
* @return an Observable that emits an item each time interval
- * @see MSDN: Observable.Interval
+ * @see interval()
+ * @see MSDN: Observable.Interval
*/
public static Observable interval(long interval, TimeUnit unit, Scheduler scheduler) {
return create(OperationInterval.interval(interval, unit, scheduler));
@@ -1899,7 +1957,7 @@ public static Observable interval(long interval, TimeUnit unit, Scheduler
* Note: If events keep firing faster than the timeout then no data will be
* emitted.
*
- *
+ *
*
* Information on debounce vs throttle:
*
@@ -1914,6 +1972,7 @@ public static Observable interval(long interval, TimeUnit unit, Scheduler
* @param unit the {@link TimeUnit} for the timeout
* @return an {@link Observable} that filters out items that are too
* quickly followed by newer items
+ * @see debounce()
* @see #throttleWithTimeout(long, TimeUnit)
*/
public Observable debounce(long timeout, TimeUnit unit) {
@@ -1927,7 +1986,7 @@ public Observable debounce(long timeout, TimeUnit unit) {
* Note: If events keep firing faster than the timeout then no data will be
* emitted.
*
- *
+ *
*
* Information on debounce vs throttle:
*
@@ -1944,6 +2003,7 @@ public Observable debounce(long timeout, TimeUnit unit) {
* timers that handle the timeout for each event
* @return an {@link Observable} that filters out items that are too
* quickly followed by newer items
+ * @see debounce()
* @see #throttleWithTimeout(long, TimeUnit, Scheduler)
*/
public Observable debounce(long timeout, TimeUnit unit, Scheduler scheduler) {
@@ -1957,7 +2017,7 @@ public Observable debounce(long timeout, TimeUnit unit, Scheduler scheduler)
* Note: If events keep firing faster than the timeout then no data will be
* emitted.
*
- *
+ *
*
* Information on debounce vs throttle:
*
@@ -1972,6 +2032,7 @@ public Observable debounce(long timeout, TimeUnit unit, Scheduler scheduler)
* @param unit the {@link TimeUnit} for the timeout
* @return an {@link Observable} that filters out items that are too
* quickly followed by newer items
+ * @see throttleWithTimeout()
* @see #debounce(long, TimeUnit)
*/
public Observable throttleWithTimeout(long timeout, TimeUnit unit) {
@@ -1985,7 +2046,7 @@ public Observable throttleWithTimeout(long timeout, TimeUnit unit) {
* Note: If events keep firing faster than the timeout then no data will be
* emitted.
*
- *
+ *
*
* Information on debounce vs throttle:
*
@@ -2002,6 +2063,7 @@ public Observable throttleWithTimeout(long timeout, TimeUnit unit) {
* timers that handle the timeout for each event
* @return an {@link Observable} that filters out items that are too
* quickly followed by newer items
+ * @see throttleWithTimeout()
* @see #debounce(long, TimeUnit, Scheduler)
*/
public Observable throttleWithTimeout(long timeout, TimeUnit unit, Scheduler scheduler) {
@@ -2015,12 +2077,13 @@ public Observable throttleWithTimeout(long timeout, TimeUnit unit, Scheduler
* This differs from {@link #throttleLast} in that this only tracks passage
* of time whereas {@link #throttleLast} ticks at scheduled intervals.
*
- *
+ *
*
* @param windowDuration time to wait before sending another item after
* emitting the last item
* @param unit the unit of time for the specified timeout
* @return an Observable that performs the throttle operation
+ * @see throttleFirst()
*/
public Observable throttleFirst(long windowDuration, TimeUnit unit) {
return create(OperationThrottleFirst.throttleFirst(this, windowDuration, unit));
@@ -2033,7 +2096,7 @@ public Observable throttleFirst(long windowDuration, TimeUnit unit) {
* This differs from {@link #throttleLast} in that this only tracks passage
* of time whereas {@link #throttleLast} ticks at scheduled intervals.
*
- *
+ *
*
* @param skipDuration time to wait before sending another item after
* emitting the last item
@@ -2041,6 +2104,7 @@ public Observable throttleFirst(long windowDuration, TimeUnit unit) {
* @param scheduler the {@link Scheduler} to use internally to manage the
* timers that handle timeout for each event
* @return an Observable that performs the throttle operation
+ * @see throttleFirst()
*/
public Observable throttleFirst(long skipDuration, TimeUnit unit, Scheduler scheduler) {
return create(OperationThrottleFirst.throttleFirst(this, skipDuration, unit, scheduler));
@@ -2054,12 +2118,13 @@ public Observable throttleFirst(long skipDuration, TimeUnit unit, Scheduler s
* scheduled interval whereas {@link #throttleFirst} does not tick, it just
* tracks passage of time.
*
- *
+ *
*
* @param intervalDuration duration of windows within which the last item
* will be emitted
* @param unit the unit of time for the specified interval
* @return an Observable that performs the throttle operation
+ * @see throttleLast()
* @see #sample(long, TimeUnit)
*/
public Observable throttleLast(long intervalDuration, TimeUnit unit) {
@@ -2074,12 +2139,13 @@ public Observable