@Test public void testResource() { final AdapterHolder.Factory<ViewHolder> factory = ViewHolderFactories.resource(android.R.layout.simple_list_item_2); assertThat(factory, is(notNullValue())); assertThat(factory, is(not(ViewHolderFactories.resource(android.R.layout.simple_list_item_2)))); }
@NonNull public static AdapterHolder.Factory<ViewHolder> resource(@LayoutRes final int resource) { return new ResourceFactory(resource); }
ViewHolderFactories { @NonNull public static AdapterHolder.Factory<ViewHolder> resource(@LayoutRes final int resource) { return new ResourceFactory(resource); } }
ViewHolderFactories { @NonNull public static AdapterHolder.Factory<ViewHolder> resource(@LayoutRes final int resource) { return new ResourceFactory(resource); } private  ViewHolderFactories(); }
ViewHolderFactories { @NonNull public static AdapterHolder.Factory<ViewHolder> resource(@LayoutRes final int resource) { return new ResourceFactory(resource); } private  ViewHolderFactories(); @NonNull static AdapterHolder.Factory<ViewHolder> simple(); @NonNull static AdapterHolder.Factory<ViewHolder> resource(@LayoutRes final int resource); }
ViewHolderFactories { @NonNull public static AdapterHolder.Factory<ViewHolder> resource(@LayoutRes final int resource) { return new ResourceFactory(resource); } private  ViewHolderFactories(); @NonNull static AdapterHolder.Factory<ViewHolder> simple(); @NonNull static AdapterHolder.Factory<ViewHolder> resource(@LayoutRes final int resource); @LayoutRes static final int SIMPLE_RESOURCE; }