Skip to content

Instantly share code, notes, and snippets.

@buzztaiki
Created August 12, 2012 17:27
Show Gist options
  • Select an option

  • Save buzztaiki/3333175 to your computer and use it in GitHub Desktop.

Select an option

Save buzztaiki/3333175 to your computer and use it in GitHub Desktop.
なぜか変換失敗する@Jenova
@Jenova(
@Lambda(name="fn", type=Function.class)
)
public class Example {
public List<String> transform(List<Integer> l) {
l = Lists.transform(l, new fn<Integer, Integer>() {{
return _1;
}});
return Lists.transform(l, new fn<Integer, String>() {{
return Integer.toString(_1 * 2);
}});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment