@Test public void testGenerate() { RxPalette.generate(bitmap) .test() .assertNoErrors() .assertComplete() .assertValueCount(1); }
@CheckResult @NonNull public static Single<Palette> generate(@NonNull final Bitmap bitmap) { return Single.fromCallable(new Callable<Palette>() { @Override public Palette call() throws Exception { return Palette.from(bitmap).generate(); } }); }
RxPalette { @CheckResult @NonNull public static Single<Palette> generate(@NonNull final Bitmap bitmap) { return Single.fromCallable(new Callable<Palette>() { @Override public Palette call() throws Exception { return Palette.from(bitmap).generate(); } }); } }
RxPalette { @CheckResult @NonNull public static Single<Palette> generate(@NonNull final Bitmap bitmap) { return Single.fromCallable(new Callable<Palette>() { @Override public Palette call() throws Exception { return Palette.from(bitmap).generate(); } }); }  }
RxPalette { @CheckResult @NonNull public static Single<Palette> generate(@NonNull final Bitmap bitmap) { return Single.fromCallable(new Callable<Palette>() { @Override public Palette call() throws Exception { return Palette.from(bitmap).generate(); } }); }  @CheckResult @NonNull static Single<Palette> generate(@NonNull final Bitmap bitmap); @CheckResult @NonNull static Single<Palette> generate(@NonNull final Palette.Builder builder); }
RxPalette { @CheckResult @NonNull public static Single<Palette> generate(@NonNull final Bitmap bitmap) { return Single.fromCallable(new Callable<Palette>() { @Override public Palette call() throws Exception { return Palette.from(bitmap).generate(); } }); }  @CheckResult @NonNull static Single<Palette> generate(@NonNull final Bitmap bitmap); @CheckResult @NonNull static Single<Palette> generate(@NonNull final Palette.Builder builder);  }