[Chromecast] Increase versatility of Both.adapt().
Now it's possible to e.g. create a Function<Both<ADerived, BDerived>, CBase> from a BiFunction<ABase, BBase, CDerived> if: * ADerived extends ABase * BDerived extends BBase * CDerived extends CBase This will help with some refactors. Bug: None Test: cast_base_junit_tests Change-Id: I7cfa3b3cfb559510e318ac8a597a138c0e4b3e0e Reviewed-on: https://chromium-review.googlesource.com/1119056Reviewed-by:Luke Halliwell <halliwell@chromium.org> Commit-Queue: Simeon Anfinrud <sanfin@chromium.org> Cr-Commit-Position: refs/heads/master@{#572286}
Showing
Please register or sign in to comment