Guava: Google Core Libraries for Java 1.5+ Googleã®Javaã¦ã¼ãã£ãªãã£ã©ã¤ãã©ãªã§ãApache Commons ã® LangãCollectionsãªã©ã«æ¿ããæ©è½ãæä¾ãã¦ããããã®ã§ããã³ã³ãã¯ããªããããããã¨ããã«æãå±ãè¯è³ªãªAPIã«ãªã£ã¦ããã¨æãã¾ãã ããã¤ãã®æ©è½ãç´¹ä»ãã¾ãã ã³ã¬ã¯ã·ã§ã³ã®å ¨ã¦ã®è¦ç´ ãå¤æããã List<A>ãåºã«ãã¦List<B>ãä½ãã¨ãã¾ãã ã©ã¤ãã©ãªã使ããªãå ´åã¯ãããªæãã«ãªãã§ãããã List<B> blist = new ArrayList<B>(alist.size()); for (A a : alist) { blist.add(new B(a)); } Guavaã使ãå ´åã¯æ¬¡ã®ããã«æ¸ãã¾ãã List<B> blist = Lists.transform(alist
{{#tags}}- {{label}}
{{/tags}}