@SuppressWarnings("unchecked") @Test public void testBindingBindHolder() { final TestAdapter adapter = new TestAdapter(); final AdapterBindingHolder mockHolder = mock(AdapterBindingHolder.class); final AdapterHolder.Binder<AdapterHolder.ItemAdapter, AdapterBindingHolder<AdapterHolder.ItemAdapter>> binder = ViewHolderBinders.binding(); for (int i = 0; i < 10; i++) { binder.bindHolder(adapter, mockHolder, i, Collections.EMPTY_LIST); verify(mockHolder).bind(adapter, i, Collections.EMPTY_LIST); } verifyNoMoreInteractions(mockHolder); }
@NonNull public static <A extends AdapterHolder.ItemAdapter, VH extends AdapterBindingHolder<A>> AdapterHolder.Binder<A, VH> binding() { return new Binding<>(); }
ViewHolderBinders { @NonNull public static <A extends AdapterHolder.ItemAdapter, VH extends AdapterBindingHolder<A>> AdapterHolder.Binder<A, VH> binding() { return new Binding<>(); } }
ViewHolderBinders { @NonNull public static <A extends AdapterHolder.ItemAdapter, VH extends AdapterBindingHolder<A>> AdapterHolder.Binder<A, VH> binding() { return new Binding<>(); } private  ViewHolderBinders(); }
ViewHolderBinders { @NonNull public static <A extends AdapterHolder.ItemAdapter, VH extends AdapterBindingHolder<A>> AdapterHolder.Binder<A, VH> binding() { return new Binding<>(); } private  ViewHolderBinders(); @NonNull static AdapterHolder.Binder<A, VH> simple(); @NonNull static AdapterHolder.Binder<A, VH> binding(); }
ViewHolderBinders { @NonNull public static <A extends AdapterHolder.ItemAdapter, VH extends AdapterBindingHolder<A>> AdapterHolder.Binder<A, VH> binding() { return new Binding<>(); } private  ViewHolderBinders(); @NonNull static AdapterHolder.Binder<A, VH> simple(); @NonNull static AdapterHolder.Binder<A, VH> binding();  }