Guavaã£ã¦ã®ãæè¿å ¬éããããã©ãããã«å°æ¥çã«çµ±åãããï¼ã¨ããgoogle-collections(RC2)ãä»é ããã£ã¦ã¿ãã ã¾ãmap,filterã½ãã®ãã Collections2.transform mapã«ç¸å½ãè¦ç´ ã«é©ç¨ããã¡ã½ããã¯Functionã§ç¨æã mapã§ãªãã¦transformãªã®ã¯C++ã®STLç±æ¥ï¼ final Function<Integer, Integer> square = new Function<Integer, Integer>() { public Integer apply(Integer elem) { return elem * elem; } }; List<Integer> numbers = Arrays.asList(1,2,3,4,5); System.out.println(Collections2.transfo
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}