ã¡ãã£ã¨åã«java7ã®ãµãã¼ããçµäºãã¾ãããã ãããªæ代ã§ãç¾å ´ã®æ¹ã¯ ã¾ã ã¾ã java8ãªãã¦å®å®ããã¦ãªãã使ããªãããã¨è¨ãæ¹ãããã®ã§ã¯ãªãã§ãããï¼ ï¼ãjava8 å©ç¨çãã§ã°ã°ãã¨æ®å¿µãªçµæãåºã¾ããããï¼ ããjava8ã«ããã¨ãã¦ãã©ã ãç¦æ¢ã»StreamAPIç¦æ¢ã¨ããããã¡ã§ãããã ãã©ã ããStreamAPIã使ããªãã§java8使ã£ã¦ãæå³ããã®ï¼ãã£ã¦è¨ããããã§ãã ã©ã ãã¨ãStreamAPIã¨ã使ããªããã£ã¦java8ã¯ã¨ã¦ãç´ æ´ãããã§ããï¼ã£ã¦ã®ãè¨ãããã¦ããã¤ãæ稿ãããã¨æã£ã¦ã¾ãã åç½®ããé·ããªãã¾ããããç´¹ä»ãã¦ããã¾ãã #Map#computeIfAbsent Mapã«è¦ç´ ããªããã°è¿½å ãã¦è¿ããã¤ã§ãã ãããçµæ§ä½¿ããã¨æã£ã¦ã¾ãã ãã¨ãã°ã public static class Foo { private final
{{#tags}}- {{label}}
{{/tags}}