Skip to content

Conversation

chnt
Copy link
Contributor

@chnt chnt commented Oct 2, 2023

Consistency in name and function.

fix: Renamed DataSource.kt to ListDataSource, because that's what it is. Also made it inherit from DataSource.
fix: Removed "shared" in the naming, because that might confuse these with using actual SharedPreferences.
fix: Renamed the member-functions from get/add/getAll/addAll to load/save/add, and made the behavior consistent between list- and single-.
fix: Simplified add().
fix: Better clear() - actually remove stuff, not just overwrite with empty string.
feat: Added Javadoc, even though the naming should be quite self-explanatory

fix: Renamed DataSource.kt to ListDataSource, because that's what it is. Also made it inherit from DataSource.
fix: Removed "shared" in the naming, because that might confuse these with using actual SharedPreferences.
fix: Renamed the member-functions from get/add/getAll/addAll to load/save/add, and made the behavior consistent between list- and single-.
fix: Simplified add.
@chnt chnt changed the title fix: Renamed SingleDataSource to just DataSource as base-class Refactor: Persistence clean-up Oct 2, 2023
@levinzonr levinzonr self-requested a review October 5, 2023 12:45
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