Created
March 4, 2011 05:51
-
-
Save k33g/854241 to your computer and use it in GitHub Desktop.
JItem / Play!
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
package models; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class JItem { | |
public String label; | |
public String url; | |
public String bundle; | |
public String author; | |
public JItem(Item item){ | |
label = item.label; | |
url = item.url; | |
bundle = item.bundle.label; | |
author = item.author.fullname; | |
} | |
public static List<JItem> geList(List<Item> items){ | |
List<JItem> JItems = new ArrayList<JItem>(); | |
for(Item item : items){ | |
JItems.add(new JItem(item)); | |
} | |
return JItems; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Essai de commentaire