{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/219","repository_url":"https://api.github.com/repos/mikepenz/FastAdapter","labels_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/219/comments","events_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/219/events","html_url":"https://github.com/mikepenz/FastAdapter/issues/219","id":179048218,"number":219,"title":"Multi selection - alternative internal structure to remember order","user":{"login":"MFlisar","id":2437726,"avatar_url":"https://avatars.githubusercontent.com/u/2437726?v=3","gravatar_id":"","url":"https://api.github.com/users/MFlisar","html_url":"https://github.com/MFlisar","followers_url":"https://api.github.com/users/MFlisar/followers","following_url":"https://api.github.com/users/MFlisar/following{/other_user}","gists_url":"https://api.github.com/users/MFlisar/gists{/gist_id}","starred_url":"https://api.github.com/users/MFlisar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MFlisar/subscriptions","organizations_url":"https://api.github.com/users/MFlisar/orgs","repos_url":"https://api.github.com/users/MFlisar/repos","events_url":"https://api.github.com/users/MFlisar/events{/privacy}","received_events_url":"https://api.github.com/users/MFlisar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/FastAdapter/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-24T19:44:34Z","updated_at":"2016-10-23T17:28:16Z","closed_at":"2016-09-25T16:16:34Z","body":"I think it would be nice to have the ability to enable something like a sorted selection mode where the selection is saved in a `LinkedHashSet` instead of a  `HashSet`.\n\nI need this because I'm selecting items that are pushed into a group. And the items can be sorted in their group so the first order should be the one in which the items were selected..."},"comment":{"url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/comments/255601580","html_url":"https://github.com/mikepenz/FastAdapter/issues/219#issuecomment-255601580","issue_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/219","id":255601580,"user":{"login":"MFlisar","id":2437726,"avatar_url":"https://avatars.githubusercontent.com/u/2437726?v=3","gravatar_id":"","url":"https://api.github.com/users/MFlisar","html_url":"https://github.com/MFlisar","followers_url":"https://api.github.com/users/MFlisar/followers","following_url":"https://api.github.com/users/MFlisar/following{/other_user}","gists_url":"https://api.github.com/users/MFlisar/gists{/gist_id}","starred_url":"https://api.github.com/users/MFlisar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MFlisar/subscriptions","organizations_url":"https://api.github.com/users/MFlisar/orgs","repos_url":"https://api.github.com/users/MFlisar/repos","events_url":"https://api.github.com/users/MFlisar/events{/privacy}","received_events_url":"https://api.github.com/users/MFlisar/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T17:28:16Z","updated_at":"2016-10-23T17:28:16Z","body":"I think about following change:\r\n\r\n    private Set<Integer> mSelections;\r\n\r\n    public FastAdapter() {\r\n        this(false);\r\n    }\r\n\r\n    public FastAdapter(boolean rememberSelectionOrder) {\r\n        setHasStableIds(true);\r\n       if (rememberSelectionOrder)\r\n           mSelections = new TreeSet();\r\n       else\r\n           mSelection = new LinkedHashSet();\r\n    }\r\n\r\nWhat does actually speak against this from your point of view?\r\n\r\n*Changes*\r\n\r\n`mSelections` is a `TreeSet` or a `LinkedHashSet` (currently it's always a `TreeSet`)."}}
{"actor":{"display_login":"MFlisar"}}