ããã«ã¡ã¯ã ã¢ããã§ãã æ¬æ¥3/18ãã¤ãã«ãJava8ãæ£å¼ãªãªã¼ã¹ããã¾ããï¼ ãããã¦ã³ãã¼ãããã¾ãããï¼ã£ã¦ã¾ã ã§ãããï¼ç§ã¯ã¾ã ã§ãï¼ã ã£ã¦å ¬éåã«ã¨ã³ããªæ¸ãã¦ããã ãããï¼ 2014/03/19追è¨ï¼Oracleã®ãã¼ã¸ãæ´æ°ããã¾ããï¼âãã¡ã ãã¦ãååã«ç¶ãã¦ãJava8ã§è¿½å ãããå°å³ã§ä¾¿å©ãªAPIãç´¹ä»ãã¦ããã¾ãã ä»åã¯ãã¿ããªå¤§å¥½ãMapã¨Concurrentããã¨ã¡ãã³ã£ã¨Comparatorã§ãã 3. Mapæä½ç·¨ (1) Map#getOrDefault() ããã¾ã§ã¯ãMapããå¤ãåå¾ãã¦nullã ã£ããããã©ã«ãå¤ã使ç¨ãããã¿ãããªã³ã¼ãã以ä¸ã®ããã«æ¸ãã¦ããã¨æãã¾ãã Map<String, String> map; // ä½ããã®Map String value = map.get("key"); if (value == nul
{{#tags}}- {{label}}
{{/tags}}