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

Allow adding alternate keys to dataiterator #6000

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

labkey-martyp
Copy link
Contributor

@labkey-martyp labkey-martyp commented Oct 28, 2024

Rationale

Add adder and update getter for alt keys.

Related Pull Requests

Changes

  • Change getter to return unmodifiable set.
  • Add addAlternateKeys

return Collections.unmodifiableSet(_alternateKeys);
}

public void addAlternateKeys(Set<String> alternateKeys)
Copy link
Contributor

Choose a reason for hiding this comment

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

I might have gone with set() instead of add(), but this is much better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I thought about that, just noticed all the usages were just adding to the existing set so just gave that level of access

@labkey-martyp labkey-martyp merged commit 60901c5 into release24.7-SNAPSHOT Oct 29, 2024
9 checks passed
@labkey-martyp labkey-martyp deleted the 24.7_fb_di_alt_key branch October 29, 2024 16:52
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