Last active
October 22, 2016 03:45
-
-
Save amatkivskiy/b90ded81f2849b9abff085bd73535953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<Pair<Character,MediaItem>> convert(List<Character> characters) { | |
List<Pair<Character,MediaItem>> downloads = new ArrayList<>(); | |
for (Character character : characters) { | |
if (character.getItems() == null) { | |
continue; | |
} | |
for (MediaItem item : character.getItems()) { | |
downloads.add(new Pair<>(character, item)); | |
} | |
} | |
return downloads; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment