{"action":"created","issue":{"url":"https://api.github.com/repos/yegor256/cactoos/issues/788","repository_url":"https://api.github.com/repos/yegor256/cactoos","labels_url":"https://api.github.com/repos/yegor256/cactoos/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/cactoos/issues/788/comments","events_url":"https://api.github.com/repos/yegor256/cactoos/issues/788/events","html_url":"https://github.com/yegor256/cactoos/issues/788","id":317567029,"number":788,"title":"Using Text as Map key is impossible","user":{"login":"krzyk","id":105730,"avatar_url":"https://avatars1.githubusercontent.com/u/105730?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyk","html_url":"https://github.com/krzyk","followers_url":"https://api.github.com/users/krzyk/followers","following_url":"https://api.github.com/users/krzyk/following{/other_user}","gists_url":"https://api.github.com/users/krzyk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyk/subscriptions","organizations_url":"https://api.github.com/users/krzyk/orgs","repos_url":"https://api.github.com/users/krzyk/repos","events_url":"https://api.github.com/users/krzyk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyk/received_events","type":"User","site_admin":false},"labels":[{"id":611498887,"url":"https://api.github.com/repos/yegor256/cactoos/labels/bug","name":"bug","color":"ee0701","default":true},{"id":817650738,"url":"https://api.github.com/repos/yegor256/cactoos/labels/scope","name":"scope","color":"3a6622","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-25T10:23:41Z","updated_at":"2018-05-09T20:47:14Z","closed_at":"2018-05-09T20:31:31Z","author_association":"CONTRIBUTOR","body":"Right now when I do:\r\n```\r\n        final String KEY = \"test\";\r\n        final Integer found = new MapOf<>(\r\n            new MapEntry<>(new TextOf(KEY), 1)\r\n        ).get(new TextOf(KEY));\r\n        System.out.println(found);\r\n```\r\nI get a `null` because `TextOf` doesn't implement hashcode and equals.\r\n\r\nTo fix this create a decorator (I'm not sure about the name, EqualsHashCodeText seams to long) that would get the string from `asString` and use its `hashCode` and equals method in this decorators `hashCode` and equals.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yegor256/cactoos/issues/comments/387870543","html_url":"https://github.com/yegor256/cactoos/issues/788#issuecomment-387870543","issue_url":"https://api.github.com/repos/yegor256/cactoos/issues/788","id":387870543,"user":{"login":"0crat","id":24387511,"avatar_url":"https://avatars1.githubusercontent.com/u/24387511?v=4","gravatar_id":"","url":"https://api.github.com/users/0crat","html_url":"https://github.com/0crat","followers_url":"https://api.github.com/users/0crat/followers","following_url":"https://api.github.com/users/0crat/following{/other_user}","gists_url":"https://api.github.com/users/0crat/gists{/gist_id}","starred_url":"https://api.github.com/users/0crat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0crat/subscriptions","organizations_url":"https://api.github.com/users/0crat/orgs","repos_url":"https://api.github.com/users/0crat/repos","events_url":"https://api.github.com/users/0crat/events{/privacy}","received_events_url":"https://api.github.com/users/0crat/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T20:47:14Z","updated_at":"2018-05-09T20:47:14Z","author_association":"COLLABORATOR","body":"@elenavolokhova[/z](https://www.0crat.com/u/elenavolokhova) please review this job completed by @paulodamaso[/z](https://www.0crat.com/u/paulodamaso), as in [§30](http://www.zerocracy.com/policy.html#30); the job will be fully closed and all payments will be made when the quality review is completed\n\n<!-- https://www.0crat.com/footprint/C63314D6Z/1292051290, version: 1.0-SNAPSHOT, hash: b8bf2614 -->"}}
{"actor":{"display_login":"0crat"}}