ãããï¼æã«å»¶æã«ãªã£ãã¨ã¯ãããJava 8ãªãªã¼ã¹ãå ·ä½åãã¦ãã¾ãããã ããããã§ãLambdaãã¯ãããã¨ããããã¨ã¯ãªãããã§ãã ã¨ããã§ãJava 8ã§é¢æ°åã£ã½ããã¨ãã§ããããã«ãªã£ã¦ããããã®ã§ãããã¡ãã£ã¨è¨è¿°ãåé·ã§ããã¨ãããã¨ã§ãçãæ¸ãããã¾ããªãèãã¦ã¿ã¾ããã Functionå ãã¦ãã¾ãã¯Java 8ã§æ¨æºã§å ¥ã£ãFunctionåãã¿ã¦ã¿ã¾ããããããã±ã¼ã¸åã¾ã§å«ããã¨java.util.funciton.Functionã§ãã ãããªæãã§ä½¿ãã¾ãã Function<String, String> enclose = s -> "[" + s + "]"; Genericsã§ã®åæå®ã®æåãå¼æ°ããã¨ãæ»ãå¤ã®åã§ããããã§ã¯Stringãã¨ã£ã¦Stringãè¿ãé¢æ°ã¨ãã¦encloseãå®ç¾©ãã¦ãã¾ãã ãããå¼ã³åºããã¨ããã¨ããããªæã
{{#tags}}- {{label}}
{{/tags}}