Skip to content

Instantly share code, notes, and snippets.

@k33g
Created March 4, 2011 05:51
Show Gist options
  • Select an option

  • Save k33g/854241 to your computer and use it in GitHub Desktop.

Select an option

Save k33g/854241 to your computer and use it in GitHub Desktop.
JItem / Play!
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;
}
}
@k33g
Copy link
Copy Markdown
Author

k33g commented Mar 4, 2011

Essai de commentaire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment