/** * Append tags * @param search the search query * @param path the path * @param tags the tags to append * @return a Completable that completes when the tags have been appended */ private Completable appendTags(String search, String path, String tags) { return Single.just(tags) .map(x -> x.split(",")) .map(Arrays::asList) .flatMapCompletable(tagList -> store.rxAppendTags(search, path, tagList)); }