Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update method names in GroupAdapter and add javadoc to better document what they do #296

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

ValCanBuild
Copy link
Collaborator

  • BREAKING: original getGroup(position) has been replaced with getGroupAtAdapterPosition(position). getGroup(position) will now return a top level group
  • BREAKING: removeGroup(index) has been renamed to removeGroupAtAdapterPosition(position) to reflect what it was actually doing

}

/**
* This returns the total number of items contained in the top level group at the passed index
*/
public int getItemCount(int groupIndex) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be getItemCountForGroup()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, changed

…t what they do

- BREAKING: original `getGroup(position)` has been replaced with `getGroupAtAdapterPosition(position)`. getGroup(position) will now return a top level group
- BREAKING: `removeGroup(index)` has been renamed to `removeGroupAtAdapterPosition(position)` to reflect what it was actually doing
- BREAKING: `getItemCount` renamed to `getItemCountForGroup`
@ValCanBuild ValCanBuild force-pushed the feature/#295-better-method-naming branch from 2bd2430 to 0df7356 Compare October 2, 2019 11:40
@ValCanBuild ValCanBuild merged commit 84d51dd into master Oct 2, 2019
@ValCanBuild ValCanBuild deleted the feature/#295-better-method-naming branch October 2, 2019 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants