concept basket in category android

appears as: basket
RxJava for Android Developers

This is an excerpt from Manning's book RxJava for Android Developers.

You can create a marble diagram in which each marble represents the number of oranges that are in a basket at a given moment. Here you can also see the log commands executed at the times oranges are put into a basket.

Let’s look at an example of a reactive variable that indicates the number of oranges in a basket.

Number of oranges in a basket

As an example of a reactive variable, imagine a basket of oranges. You’ll use an observable to keep track of changes in the number of them.

// An observable for how many oranges are in a basket
Observable<Integer> numberOfOrangeObservable = ...;