[Chromecast] Erase param type of Observable.not().
This allows users of Observable.not() to avoid importing org.chromium.chromecast.base.Unit, while communicating the same intent that there is nothing special about the data. This is also in anticipation of rewriting how not() works if Observables that can have multiple activations at once are made. For such Observables, a fold() or reduce() operator would be a natural way to implement not(), and forcing the type signature of the result of reduce() to agree with not() is an unnecessary constraint, when all that matters for not() is the lifetime of the activation, not the data type. Bug: None Test: cast_base_junit_tests, cast_shell_junit_tests Change-Id: I89f6f40695f443d9c946abaad4d00a9faa463046 Reviewed-on: https://chromium-review.googlesource.com/1241849Reviewed-by:Luke Halliwell <halliwell@chromium.org> Commit-Queue: Simeon Anfinrud <sanfin@chromium.org> Cr-Commit-Position: refs/heads/master@{#594388}
Showing
Please register or sign in to comment