{"action":"closed","issue":{"url":"https://api.github.com/repos/amaembo/streamex/issues/119","repository_url":"https://api.github.com/repos/amaembo/streamex","labels_url":"https://api.github.com/repos/amaembo/streamex/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/amaembo/streamex/issues/119/comments","events_url":"https://api.github.com/repos/amaembo/streamex/issues/119/events","html_url":"https://github.com/amaembo/streamex/issues/119","id":179074331,"number":119,"title":"Introduce toImmutableXYZ methods to create immutable collections","user":{"login":"amaembo","id":5114450,"avatar_url":"https://avatars.githubusercontent.com/u/5114450?v=3","gravatar_id":"","url":"https://api.github.com/users/amaembo","html_url":"https://github.com/amaembo","followers_url":"https://api.github.com/users/amaembo/followers","following_url":"https://api.github.com/users/amaembo/following{/other_user}","gists_url":"https://api.github.com/users/amaembo/gists{/gist_id}","starred_url":"https://api.github.com/users/amaembo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaembo/subscriptions","organizations_url":"https://api.github.com/users/amaembo/orgs","repos_url":"https://api.github.com/users/amaembo/repos","events_url":"https://api.github.com/users/amaembo/events{/privacy}","received_events_url":"https://api.github.com/users/amaembo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-25T08:05:01Z","updated_at":"2016-09-25T09:31:15Z","closed_at":"2016-09-25T09:31:15Z","body":"Often for security or code quality reasons it's desired to create a collection which is guaranteed to be immutable after creation. Currently existing methods `toList()`, etc. return collections which are guaranteed to be mutable. While it's possible to use `toListAndThen(Collections::unmodifiableList)`, having dedicated shortcuts is better for the most common cases: `AbstractStreamEx.toImmutableList()`, `toImmutableSet()` and `EntryStream.toImmutableMap()`. Also such shortcuts may return somewhat optimized collections."}}
{"actor":{"display_login":"amaembo"}}