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

Refactor: Persistence clean-up #75

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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