8. Optionalãç¨æãã â å¤ããã Optional.of(str) â nullã渡ãã¨ã¬ãã½ â å¤ããªã Optional.empty() â å¤ããããã©ããããããªã Optional.ofNullable(str)
5. 5 / 54 ã©ã ãå¼ã¨ã¹ããªã¼ã API ⢠ã©ã ãå¼ã¨ã¯é¢æ°ã簡便ã«è¡¨ç¾ããããã®è¨æ³ã ⢠ã¹ããªã¼ã APIã¯ãã©ã ãå¼ãå©ç¨ããã³ã¬ã¯ ã·ã§ã³æä½ç¨ã®API ⢠é¢æ°åããã°ã©ãã³ã°è¨èªç±æ¥ãæ´å²ã¯å¤ãã ⢠ããã¾ã§ã®æç¶ãåããªãã¸ã§ã¯ãæåçãªã ãã°ã©ãã³ã°ææ³ãããé¢æ°åããã°ã©ãã³ã° ã«å¤ããã¾ãã ⢠ãã©ãã¤ã ã·ããã®ãããï¼ï¼ 6. 6 / 54 ç°¡åãªãµã³ã㫠⢠ãã«ã¼ãã®ä¸è¦§ã®ä¸ãã ⢠ååãâãããâã§å§ã¾ãã ⢠å¤æ®µã100å以ä¸ã®ãã®ãã ⢠å¤æ®µé ã§ä¸¦ã³æ¿ãã ⢠ååã ããåãåºãã¦ã ⢠ãªã¹ããä½æãã 1 List<String> apples = fruits.stream() 2 .filter(f -> f.getName().startsWith("ããã")) 3 .filter(f -> f.getPrice() > 10
New Feature Of Java SE 8 1. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.1 2. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.2 以ä¸ã®äºé ã¯ãå¼ç¤¾ã®ä¸è¬çãªè£½åã®æ¹åæ§ã«é¢ããæ¦è¦ã説æãããã®ã§ã ãã¾ããæ å ±æä¾ãå¯ä¸ã®ç®çã¨ãããã®ã§ããããããªãå¥ç´ã«ãçµã¿è¾¼ãã ã¨ã¯ã§ãã¾ããã以ä¸ã®äºé ã¯ããããªã¢ã«ãã³ã¼ããæ©è½ãæä¾ãããã¨ãã³ãã ãã¡ã³ãï¼ç¢ºç´ï¼ãããã®ã§ã¯ãªãããã購買決å®ãè¡ãéã®å¤æææã«ãªãããªã ã§ä¸ããããªã©ã¯ã«è£½åã«é¢ãã¦è¨è¼ããã¦ããæ©è½ã®éçºããªãªã¼ã¹ããã³æ æã«ã¤ãã¦ã¯ãå¼ç¤¾ã®è£éã«ãã決å®ããã¾ãã Oracleã¯ãç±³å½ãªã©ã¯ã«ã³ã¼ãã¬
ç¦å²¡JavaOne2013å ±åä¼ç¬¬2å¼¾ã§ã®ãã¬ã¼ã³ ã©ã ãæ§æã®ææ³ãããããã®ä½¿ãæ¹ã¨ããã°ã©ãã³ã°ã¹ã¿ã¤ã«ã«ã¤ãã¦ã主ã«ã¾ã¨ãã¾ãããRead less
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}