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

Add methods in KiwiMaps to create unmodifiable maps #811

Closed
sleberknight opened this issue Nov 26, 2022 · 0 comments · Fixed by #812
Closed

Add methods in KiwiMaps to create unmodifiable maps #811

sleberknight opened this issue Nov 26, 2022 · 0 comments · Fixed by #812
Assignees
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Milestone

Comments

@sleberknight
Copy link
Member

Add new methods in KiwiMaps that permit creating unmodifiable maps using the same varargs syntax (i.e. Object items...) that the existing methods do. While Java's Map#of has variants that accept up to 10 key/value pairs, if there are more than that you must use the Map#ofEntries that accepts entry objects. In addition, at least for regular old HashMap and LinkedHashMap, we can permit null keys and values.

@sleberknight sleberknight self-assigned this Nov 26, 2022
@sleberknight sleberknight added the new feature A new feature such as a new class, method, package, group of classes, etc. label Nov 26, 2022
@sleberknight sleberknight added this to the 2.4.0 milestone Nov 26, 2022
sleberknight added a commit that referenced this issue Nov 26, 2022
* newUnmodifiableHashMap
* newUnmodifiableLinkedHashMap
* newUnmodifiableTreeMap
* newUnmodifiableConcurrentHashMap

Misc:

* change <i> tags in javadoc to use <em> since <i> is deprecated

Closes #811
chrisrohr pushed a commit that referenced this issue Nov 28, 2022
* newUnmodifiableHashMap
* newUnmodifiableLinkedHashMap
* newUnmodifiableTreeMap
* newUnmodifiableConcurrentHashMap

Misc:

* change <i> tags in javadoc to use <em> since <i> is deprecated

Closes #811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant