ãã㯠Java Advent Calendar 2015 ã® 15 æ¥ç®ã®è¨äºã§ãã æ¨æ¥ã¯ @opengl_8080 ããã® Byteman 使ãæ¹ã¡ã¢ï¼Î± ã§ãããææ¥ã¯ @irof ããã§ãã åç½®ã ã¤ãããªãã ãã¼ã ã§ã¡ãã£ã¨ã ã話é¡ã«ä¸ã£ã¦ãã¿ããªããç¨åº¦æéã¯æã£ã¦ãããã®ã®ãå²ã¨æ©ã¿ã¤ã¤æ確ã«çããåºããªãã£ãã®ã§ããã£ã¨è¯ãæè¦ãããã°ã¨æã£ã¦æãã¦ã¿ã¾ããã¾ããããã話ã ããJava 8 㧠Optional ã使ããããã«ãªã£ã¦ null ã«ã¤ãã¦èªãããã±ã¼ã¹ãå¢ããã¨æãã®ã§ãåèããã¡ããã©ããæ©ä¼ã«ãªãã°ãããªã¼ã¨æãã¾ããåå¿è åãã§ãã ã©ãå¦ãï¼å¦ãï¼ ãããªç¶æ³ã®æã«ããªããªãã©ããã¾ããï¼ // Generics ãªã®ã¯ä¾ã§ããString ã§ããªãã§ãããã§ã public T doSomething(T input) { // input ã
æ¿åºã¯ï¼ï¼æ¥ãå°åãçµã£ã¦è¦å¶ãç·©ããå½å®¶æ¦ç¥ç¹åºã«åèå¸ãæå®ããå°åç¡äººé£è¡æ©ï¼ããã¼ã³ï¼ã使ã£ãå® é ãã§ããããã«ããã¨çºè¡¨ãããç±³é販æ大æã¢ãã¾ã³ãåå ¥ããæ¹éã§ãï¼å¹´ä»¥å ã®äºæ¥åããããã¦ãããå®ç¾ããã°ãä¸çåã¨ãªãå¯è½æ§ãããã åæ¥éãããå½å®¶æ¦ç¥ç¹åºè«®åä¼è°ï¼è°é·ã»å®åæä¸é¦ç¸ï¼ã§æå®ã決ã¾ã£ãã åèå¸ã®è¨ç»ã«ããã¨ãæ±äº¬æ¹¾ã«é¢ããå¹å¼µæ°é½å¿ã®ãã³ã·ã§ã³ã®å¨è¾ºã«éç©æãè¨ããç´ï¼ï¼ããé¢ããç©æµå庫ãããããã¼ã³ã§æµ·ãå·ã®ä¸ãéã£ã¦è·ç©ãéã¶ãã¢ãã¾ã³ã¯ãã®å°åã«ããç©æµå庫ãæ´»ç¨ãããã¼ã³ã使ããã¨ã§ãé éã®æéãçããããã人件費ãæ¸ããããã§ããã ã¾ããåå°åºã®ãã©ãã°ã¹ãã¢ãããã³ã·ã§ã³ã®åæ¸ã®ãã©ã³ããªã©ã«ãããã¼ã³ã§è¬ãæ¥ç¨åãå±ããè¨ç»ãããããããã¦ããã¬ãé»è©±ã§æè¬æå°ãåãã¦å¦æ¹è¬ãè²·ããããè¦å¶ãç·©ããå¤ã«è²·ãç©ã«åºã«ããé«é½¢è ãåè²ã¦ä¸ä»£ãªã©
ä¸çªæªãã®ã¯æ¯è¦ªã ã㪠ã»ä½ãæ¸ãã¦ãæ§ãã¾ããã®ã§@çæ´»æ¿ 15 561 ï¼1/3ï¼2015/12/14(æ)12:41:43 IDï¼CYx é·æããã¾ããã å年以ä¸åã«äº¡ããªã£ãç¥æ¯ã¨ãç§ã¨æ¯ã®è©±ã ç§ãä¸å¦ã«ãªãé ã¾ã§ãç¶æ¹ã®ç¥ç¶ç¥æ¯ã¨åå± ã ã£ãã ç¥ç¶ãç¥æ¯ãç¶ãæ¯ãç§ã妹ã®6人ã§ãäºé建ã¦ä¸è»å®¶ã«ä½ãã§ããã ç¥æ¯ã¯èº«ä½ãå¼±ããç§ãç©å¿ã¤ããã¨ãã«ã¯å ¥éé¢ãç¹°ãè¿ãã¦ããã åºæ¥ãã ãèªå® ã«ãããã¨ããç¥æ¯ã®æåã«ãããç é¢ã«ç½®ããããªå»çæ©å¨ã両親ã¯è³¼å ¥ããã å ã ããã¨ãã®ã嬢ããã ã£ããããããéã湯水ã®ããã«ä½¿ã£ã¦ããã å½ç¶ãå«å ¥ãããããã ãããå®å®¶ã®æ´å©ããªããããã«è²¯éã¯ä½¿ãæããã両親ã®è²¯éã«æãåºãã¦ããã æ¯ã¯ããã®ããä»äºãããããå¾ãªããªã£ãã æ¯ã¯ãå°ããã£ãç§ãè¦ã¦ãé ·ããããã«ãå«ãã³ãããã¦ããã åºããé£äºãæ¨ã¦ããã稼ããå°ãªãã¨æé³´ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}