{"action":"opened","issue":{"url":"https://api.github.com/repos/google/truth/issues/463","repository_url":"https://api.github.com/repos/google/truth","labels_url":"https://api.github.com/repos/google/truth/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/google/truth/issues/463/comments","events_url":"https://api.github.com/repos/google/truth/issues/463/events","html_url":"https://github.com/google/truth/issues/463","id":325374817,"number":463,"title":"Method hasOnlyElementsOfType for Iterables","user":{"login":"dfloureiro","id":11614739,"avatar_url":"https://avatars0.githubusercontent.com/u/11614739?v=4","gravatar_id":"","url":"https://api.github.com/users/dfloureiro","html_url":"https://github.com/dfloureiro","followers_url":"https://api.github.com/users/dfloureiro/followers","following_url":"https://api.github.com/users/dfloureiro/following{/other_user}","gists_url":"https://api.github.com/users/dfloureiro/gists{/gist_id}","starred_url":"https://api.github.com/users/dfloureiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfloureiro/subscriptions","organizations_url":"https://api.github.com/users/dfloureiro/orgs","repos_url":"https://api.github.com/users/dfloureiro/repos","events_url":"https://api.github.com/users/dfloureiro/events{/privacy}","received_events_url":"https://api.github.com/users/dfloureiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-22T16:36:58Z","updated_at":"2018-05-22T16:36:58Z","closed_at":null,"author_association":"NONE","body":"Hello everyone,\r\n\r\nI was migrating from assertJ to Truth, and I found no alternative method to hasOnlyElementsOfType for Iterables.\r\nI've used as alternative this method:\r\n\r\nprivate void assertHasOnlyElementsOfType(@NonNull final Iterable iterable, @NonNull final Class<?> classType) {\r\n        for (Object object : iterable) {\r\n            assertThat(object).isInstanceOf(classType);\r\n        }\r\n    }\r\n\r\nCould you consider adding something similar in the future?\r\n\r\nThanks in advance,\r\nKeep up the awesome work!"}}
{"actor":{"display_login":"dfloureiro"}}