{"action":"reopened","issue":{"url":"https://api.github.com/repos/scr/j8iterables/issues/11","labels_url":"https://api.github.com/repos/scr/j8iterables/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/scr/j8iterables/issues/11/comments","events_url":"https://api.github.com/repos/scr/j8iterables/issues/11/events","html_url":"https://github.com/scr/j8iterables/issues/11","id":108411485,"number":11,"title":"Need an easy way to determine whether Ends are unique","user":{"login":"scr","id":245840,"avatar_url":"https://avatars.githubusercontent.com/u/245840?v=3","gravatar_id":"","url":"https://api.github.com/users/scr","html_url":"https://github.com/scr","followers_url":"https://api.github.com/users/scr/followers","following_url":"https://api.github.com/users/scr/following{/other_user}","gists_url":"https://api.github.com/users/scr/gists{/gist_id}","starred_url":"https://api.github.com/users/scr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scr/subscriptions","organizations_url":"https://api.github.com/users/scr/orgs","repos_url":"https://api.github.com/users/scr/repos","events_url":"https://api.github.com/users/scr/events{/privacy}","received_events_url":"https://api.github.com/users/scr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-25T21:32:01Z","updated_at":"2015-09-25T21:48:41Z","closed_at":null,"body":"Consider this snippet.\r\n\r\n```\r\nEnds<String> ends = J8Iterables.ends(Collections.singleton(\"foo\"));\r\nif (ends.getFirst() != ends.getLast()) {\r\n    // Then I have at least two words - specifically, for name fields, I have a first and last name.\r\n}\r\n```\r\n\r\nSmart editors/IDE's will warn you that you are comparing strings with `!=` instead of `.equals()`.  To make this easier for clients, add a method to determine whether first and last are unique compared to each other."}}