Skip to content
New issue

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

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

Already on GitHub? # to your account

Language enum values now provide all field names #132

Merged
merged 7 commits into from
Feb 13, 2024
Merged

Conversation

dabico
Copy link
Member

@dabico dabico commented Feb 13, 2024

As opposed to just providing the totalFields count, we instead now provide a complete collection of field names in the aptly named fields instance variable. This PR also introduces the following changes:

  • Type change from Collection to List for all Language container member;
  • Deprecation (with eventual removal) of:
    • Language#getTotalSymbols
    • Language#getTotalFields

As the name suggest, it allows us to retrieve the field name by ID.
It currently sees no use in the code, but I have plans to use it in
the constructor to eagerly fetch all the valid field names of a
language.
This should not have any impact on the API, as we use a more restrictive
type now as opposed to before.
However, the API does still retain the `Language#getTotalFields` method.
This ensures that there are no breaking changes with the field change.
Really does not make any more sense to keep holding on to these methods.
Both were introduced in order to mitigate the possibility of breaking
changes.
@dabico dabico merged commit 0a5bce1 into master Feb 13, 2024
2 checks passed
@dabico dabico deleted the feature/fields branch February 13, 2024 22:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant