Given a stream of collection of items to show, provide a diff callback which determines the size and differences in that collection.
Observable<List<String>> observable1 ...;
observable1.compose(RxDiffUtil.diff(new RxDiffUtil.Callback<List<String>>() {
@Override
public int getSize(List<String> list) {
return list.size();
}