My suggestion is to use immutable models, given its advantages. For now, I will make all attributes as public and final instead of creating getter methods for each of them, because I intend to write a second part of this article where I explain how to va…
So, if you have 10 movies in your data store, then the
onNext() method will be called 10 times with 10
Movie objects. After the operation succeeds, the
onComplete() method will be called but if it fails the
onError() method will be called with the appropriate error object.