Java8ã®lambdaæ§æã®è©±ãæ¸ãã¨ãæ§æ¥ã®æ¸ãæ¹ã§ããã¨ããã³ã¡ã³ããã¤ãã®ã§ãããããã§ã便å©ã«ãªã£ãMapã®æ©æµãåãããã¨ã¯å¤ãããããªããã¨æãã¾ãã â» 2018/5/31 Java9ããã¯ã¡ã¢åå帰ã«ã¯ä½¿ããªããªã£ã¦ãã¾ã â» 2019/2/15 ãªããåé¡ãªãï¼ Mapã«ã¯ãlambdaå¼ã使ã£ãã¡ã½ãããå¤ã追å ããã¦ãã¾ããããã¨ãã°getOrDefaultã¡ã½ããã®ãããªlambdaå¼ã使ããªãã¡ã½ããã追å ããã¦ãã¦ãããã便å©ã§ãã ããã¦ããã®ãããªlambdaå¼ã使ããªãã¡ã½ããããéæ¥çã«ã¯lambdaæ§æãµãã¼ãã§ã®è¨èªæ¡å¼µã®ãããã§ãã Mapã¯ã¤ã³ã¿ãã§ã¼ã¹ãªã®ã§ãJava7ã¾ã§ã®æ§æã§ã¡ã½ããã追å ãããã¨ããã¨ãMapãå®è£ ãã¦ãããã¹ã¦ã®ã¯ã©ã¹ã«æ°ããã¡ã½ããã®å®è£ ã追å ããå¿ è¦ãããã¾ãããããã¦ããã¯ç¾å®çã«ä¸å¯è½ãªã®ã§ãä»ã¾ã§Mapãªã©
{{#tags}}- {{label}}
{{/tags}}