test_class.declarator: dynamicRecyclerViewAdapter
test_class.original_string: DynamicRecyclerViewAdapter dynamicRecyclerViewAdapter;
test_class.type: DynamicRecyclerViewAdapter
test_class.var_name: dynamicRecyclerViewAdapter
test_class.declarator: FIRST_ITEM = "firstItem"
test_class.modifier: private static final
test_class.original_string: private static final String FIRST_ITEM = "firstItem";
test_class.type: String
test_class.var_name: FIRST_ITEM
test_class.declarator: FIRST_ITEM_SECTION_TITLE = new TestSectionEvaluator().evaluate(FIRST_ITEM)
test_class.modifier: private static final
test_class.original_string: private static final String FIRST_ITEM_SECTION_TITLE = new TestSectionEvaluator().evaluate(FIRST_ITEM);
test_class.type: String
test_class.var_name: FIRST_ITEM_SECTION_TITLE
test_class.declarator: SECOND_ITEM = "secondItem"
test_class.modifier: private final static
test_class.original_string: private final static String SECOND_ITEM = "secondItem";
test_class.type: String
test_class.var_name: SECOND_ITEM
test_class.declarator: SECOND_ITEM_SECTION_TITLE = new TestSectionEvaluator().evaluate(SECOND_ITEM)
test_class.modifier: private static final
test_class.original_string: private static final String SECOND_ITEM_SECTION_TITLE = new TestSectionEvaluator().evaluate(SECOND_ITEM);
test_class.type: String
test_class.var_name: SECOND_ITEM_SECTION_TITLE
test_class.declarator: testItems = Arrays.asList(FIRST_ITEM, SECOND_ITEM)
test_class.modifier: private
test_class.original_string: private List<String> testItems = Arrays.asList(FIRST_ITEM, SECOND_ITEM);
test_class.type: List<String>
test_class.var_name: testItems
test_class.declarator: titleCaptor
test_class.modifier: @Captor
test_class.original_string: @Captor ArgumentCaptor<String> titleCaptor;
test_class.type: ArgumentCaptor<String>
test_class.var_name: titleCaptor
test_class.declarator: dataItemsCaptor
test_class.modifier: @Captor
test_class.original_string: @Captor ArgumentCaptor<Collection<DataCellItem>> dataItemsCaptor;
test_class.type: ArgumentCaptor<Collection<DataCellItem>>
test_class.var_name: dataItemsCaptor
test_class.declarator: dataItemCaptor
test_class.modifier: @Captor
test_class.original_string: @Captor ArgumentCaptor<String> dataItemCaptor;
test_class.type: ArgumentCaptor<String>
test_class.var_name: dataItemCaptor
test_class.declarator: positionCaptor
test_class.modifier: @Captor
test_class.original_string: @Captor ArgumentCaptor<Integer> positionCaptor;
test_class.type: ArgumentCaptor<Integer>
test_class.var_name: positionCaptor
test_class.file: recyclerviewwithdynamicsubtitles/src/test/java/com/infullmobile/android/recyclerviewwithdynamicsubtitles/DynamicRecyclerViewAdapterTest.java
test_class.identifier: DynamicRecyclerViewAdapterTest
test_case.body: @Test
      public void shouldDelegateBindSecondItemViewHolder() {
          // given
          RecyclerView.ViewHolder viewHolder = mock(RecyclerView.ViewHolder.class);
          final int position = 3;
  
          // when
          dynamicRecyclerViewAdapter.onBindViewHolder(viewHolder, position);
  
          // then
          verify(dynamicRecyclerViewAdapter)
                  .onBindViewHolder(isA(RecyclerView.ViewHolder.class),
                                    dataItemCaptor.capture(),
                                    positionCaptor.capture());
          assertThat(dataItemCaptor.getValue()).isEqualTo(SECOND_ITEM);
          assertThat(positionCaptor.getValue()).isEqualTo(position);
      }
test_case.class_method_signature: DynamicRecyclerViewAdapterTest.shouldDelegateBindSecondItemViewHolder()
test_case.full_signature: @Test public void shouldDelegateBindSecondItemViewHolder()
test_case.identifier: shouldDelegateBindSecondItemViewHolder
test_case.invocations: mock onBindViewHolder onBindViewHolder verify isA capture capture isEqualTo assertThat getValue isEqualTo assertThat getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldDelegateBindSecondItemViewHolder()
focal_class.declarator: TITLE_TYPE = 0
focal_class.modifier: static final
focal_class.original_string: static final int TITLE_TYPE = 0;
focal_class.type: int
focal_class.var_name: TITLE_TYPE
focal_class.declarator: ITEM_TYPE = 1
focal_class.modifier: static final
focal_class.original_string: static final int ITEM_TYPE = 1;
focal_class.type: int
focal_class.var_name: ITEM_TYPE
focal_class.declarator: sectionedItemList = Collections.emptyList()
focal_class.modifier: private
focal_class.original_string: private List<ListItem> sectionedItemList = Collections.emptyList();
focal_class.type: List<ListItem>
focal_class.var_name: sectionedItemList
focal_class.declarator: mapOfSections = Collections.emptyMap()
focal_class.modifier: private
focal_class.original_string: private Map<String, Section<DataObject>> mapOfSections = Collections.emptyMap();
focal_class.type: Map<String, Section<DataObject>>
focal_class.var_name: mapOfSections
focal_class.file: recyclerviewwithdynamicsubtitles/src/main/java/com/infullmobile/android/recyclerviewwithdynamicsubtitles/DynamicRecyclerViewAdapter.java
focal_class.identifier: DynamicRecyclerViewAdapter
focal_class.class_method_signature: DynamicRecyclerViewAdapter.onCreateViewHolder(@NonNull ViewGroup parent)
focal_class.full_signature: public abstract ViewHolder onCreateViewHolder(@NonNull ViewGroup parent)
focal_class.identifier: onCreateViewHolder
focal_class.modifiers: public abstract
focal_class.parameters: (@NonNull ViewGroup parent)
focal_class.return: ViewHolder
focal_class.signature: ViewHolder onCreateViewHolder(@NonNull ViewGroup parent)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.onCreateTitleViewHolder(@NonNull ViewGroup parent)
focal_class.full_signature: public abstract TitleViewHolder onCreateTitleViewHolder(@NonNull ViewGroup parent)
focal_class.identifier: onCreateTitleViewHolder
focal_class.modifiers: public abstract
focal_class.parameters: (@NonNull ViewGroup parent)
focal_class.return: TitleViewHolder
focal_class.signature: TitleViewHolder onCreateTitleViewHolder(@NonNull ViewGroup parent)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.onBindViewHolder(@NonNull ViewHolder holder, @NonNull DataObject item, int position)
focal_class.full_signature: public abstract void onBindViewHolder(@NonNull ViewHolder holder, @NonNull DataObject item, int position)
focal_class.identifier: onBindViewHolder
focal_class.modifiers: public abstract
focal_class.parameters: (@NonNull ViewHolder holder, @NonNull DataObject item, int position)
focal_class.return: void
focal_class.signature: void onBindViewHolder(@NonNull ViewHolder holder, @NonNull DataObject item, int position)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.onBindTitleViewHolder(@NonNull TitleViewHolder holder,
                                                 @NonNull String sectionName,
                                                 @NonNull Collection<DataObject> dataItems,
                                                 int position)
focal_class.full_signature: public abstract void onBindTitleViewHolder(@NonNull TitleViewHolder holder,
                                                 @NonNull String sectionName,
                                                 @NonNull Collection<DataObject> dataItems,
                                                 int position)
focal_class.identifier: onBindTitleViewHolder
focal_class.modifiers: public abstract
focal_class.parameters: (@NonNull TitleViewHolder holder,
                                                 @NonNull String sectionName,
                                                 @NonNull Collection<DataObject> dataItems,
                                                 int position)
focal_class.return: void
focal_class.signature: void onBindTitleViewHolder(@NonNull TitleViewHolder holder,
                                                 @NonNull String sectionName,
                                                 @NonNull Collection<DataObject> dataItems,
                                                 int position)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.onCreateViewHolder(@NonNull ViewGroup parent, int viewType)
focal_class.full_signature: @Override public final RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType)
focal_class.identifier: onCreateViewHolder
focal_class.modifiers: @Override public final
focal_class.parameters: (@NonNull ViewGroup parent, int viewType)
focal_class.return: RecyclerView.ViewHolder
focal_class.signature: RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position)
focal_class.full_signature: @Override public final void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position)
focal_class.identifier: onBindViewHolder
focal_class.modifiers: @Override public final
focal_class.parameters: (@NonNull RecyclerView.ViewHolder holder, int position)
focal_class.return: void
focal_class.signature: void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.getItemViewType(int position)
focal_class.full_signature: @Override public final int getItemViewType(int position)
focal_class.identifier: getItemViewType
focal_class.modifiers: @Override public final
focal_class.parameters: (int position)
focal_class.return: int
focal_class.signature: int getItemViewType(int position)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.getItemCount()
focal_class.full_signature: @Override public final int getItemCount()
focal_class.identifier: getItemCount
focal_class.modifiers: @Override public final
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getItemCount()
focal_class.class_method_signature: DynamicRecyclerViewAdapter.setData(@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator)
focal_class.full_signature: public final void setData(@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator)
focal_class.identifier: setData
focal_class.modifiers: public final
focal_class.parameters: (@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator)
focal_class.return: void
focal_class.signature: void setData(@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.setData(@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator,
                                @NonNull Comparator<Section> comparator)
focal_class.full_signature: public final void setData(@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator,
                                @NonNull Comparator<Section> comparator)
focal_class.identifier: setData
focal_class.modifiers: public final
focal_class.parameters: (@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator,
                                @NonNull Comparator<Section> comparator)
focal_class.return: void
focal_class.signature: void setData(@Nullable Collection<DataObject> items,
                                @NonNull SectionEvaluator<DataObject> sectionEvaluator,
                                @NonNull Comparator<Section> comparator)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.insertNewItems(SectionedItems<DataObject> sectionedItems)
focal_class.full_signature: private void insertNewItems(SectionedItems<DataObject> sectionedItems)
focal_class.identifier: insertNewItems
focal_class.modifiers: private
focal_class.parameters: (SectionedItems<DataObject> sectionedItems)
focal_class.return: void
focal_class.signature: void insertNewItems(SectionedItems<DataObject> sectionedItems)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.removeUnnecessaryItems(List<? extends ListItem> newItems)
focal_class.full_signature: private void removeUnnecessaryItems(List<? extends ListItem> newItems)
focal_class.identifier: removeUnnecessaryItems
focal_class.modifiers: private
focal_class.parameters: (List<? extends ListItem> newItems)
focal_class.return: void
focal_class.signature: void removeUnnecessaryItems(List<? extends ListItem> newItems)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.addMissingItems(List<? extends ListItem> newItems)
focal_class.full_signature: private void addMissingItems(List<? extends ListItem> newItems)
focal_class.identifier: addMissingItems
focal_class.modifiers: private
focal_class.parameters: (List<? extends ListItem> newItems)
focal_class.return: void
focal_class.signature: void addMissingItems(List<? extends ListItem> newItems)
focal_class.class_method_signature: DynamicRecyclerViewAdapter.updateTitles()
focal_class.full_signature: private void updateTitles()
focal_class.identifier: updateTitles
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateTitles()
focal_class.superclass: extends RecyclerView.Adapter
focal_method.body: public abstract void onBindViewHolder(@NonNull ViewHolder holder, @NonNull DataObject item, int position);
focal_method.class_method_signature: DynamicRecyclerViewAdapter.onBindViewHolder(@NonNull ViewHolder holder, @NonNull DataObject item, int position)
focal_method.full_signature: public abstract void onBindViewHolder(@NonNull ViewHolder holder, @NonNull DataObject item, int position)
focal_method.identifier: onBindViewHolder
focal_method.modifiers: public abstract
focal_method.parameters: (@NonNull ViewHolder holder, @NonNull DataObject item, int position)
focal_method.return: void
focal_method.signature: void onBindViewHolder(@NonNull ViewHolder holder, @NonNull DataObject item, int position)