@Test public void itemCount() { final Maneuver maneuver = MockUtils.mockManeuver(); mManeuverListAdapter = new ManeuverListAdapter(Arrays.asList(maneuver, maneuver)); assertThat(mManeuverListAdapter.getItemCount(), equalTo(2)); }
@Override public int getItemCount() { return mManeuverList.size(); }
ManeuverListAdapter extends RecyclerView.Adapter<ManeuverListAdapter.ViewHolder> { @Override public int getItemCount() { return mManeuverList.size(); } }
ManeuverListAdapter extends RecyclerView.Adapter<ManeuverListAdapter.ViewHolder> { @Override public int getItemCount() { return mManeuverList.size(); } ManeuverListAdapter(final List<Maneuver> maneuverList); }
ManeuverListAdapter extends RecyclerView.Adapter<ManeuverListAdapter.ViewHolder> { @Override public int getItemCount() { return mManeuverList.size(); } ManeuverListAdapter(final List<Maneuver> maneuverList); void setUnitSystem(UnitSystem unitSystem); UnitSystem getUnitSystem(); @Override ViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType); @Override void onBindViewHolder(final ViewHolder holder, final int position); @Override int getItemCount(); }
ManeuverListAdapter extends RecyclerView.Adapter<ManeuverListAdapter.ViewHolder> { @Override public int getItemCount() { return mManeuverList.size(); } ManeuverListAdapter(final List<Maneuver> maneuverList); void setUnitSystem(UnitSystem unitSystem); UnitSystem getUnitSystem(); @Override ViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType); @Override void onBindViewHolder(final ViewHolder holder, final int position); @Override int getItemCount();  }