31-ç¶æ ã ãã§ãªãããµãã¾ãããã«ãã»ã«åãã
ãããã°ã©ããç¥ãã¹ã97ã®ãã¨ãã®31åç®ã®ã¨ãã½ã¼ãã¯ãã«ãã»ã«åã¨ãã¡ã¤ã³ã¢ãã«ã«é¢ãã話ã§ãããªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ã®ç¹å¾´ã¨ããã°ãç¶æ¿ã»ããªã¢ã¼ãã£ãºã ã»ã«ãã»ã«åã®ï¼ç¹ã§ããä½ããå¹çè¯ãããã°ã©ã ãæ§æããããã®èãæ¹ã§ãããJavaãåãã¨ãããªãã¸ã§ã¯ãæåè¨èªã§ã¯è¨èªæ©è½ã¨ãã¦æä¾ããã¦ãã¾ããã«ãã»ã«åãä¸è¨ã§è¨ãã°ãæ
å ±ãé è½ãããã¨ã§å¤é¨ã«å
¬éããç¯å²ãéå®ããå
é¨çã«ã¯ä¿®æ£ã®å½±é¿ç¯å²ãéå®ããå¹æããå¤é¨çã«ã¯å
é¨ä»æ§ãæèããå¿
è¦ã®ãªãã·ã³ãã«ãªAPIã«ãªãå¹æãããããã¾ã*1ãããã¯ãªãã¸ã§ã¯ãéã®å¢çãå®ç¾©ããææ³ã¨ãè¨ãã¾ãã
ãã®ã¨ãã½ã¼ãã®åãã®æ¹ã§ã¯ãã¯ã©ã¹ãã«é¢ããã«ãã»ã«åã«ã¤ãã¦è¨è¿°ããã¦ãã¾ããã¯ã©ã¹ã¨ã¯ãç¶æ
ã¨æ¯ãèããç´°ããåä½ã§ã«ãã»ã«åãããã®ã§ããããã¦ãé¥ããã¡ãªåé¡ã¨ãã¦ãç¶æ
ã®ã¿ãã«ãã»ã«åãããããã¼ã¿ã¯ã©ã¹ï¼ã¬ã³ã¼ãåã¯ã©ã¹ï¼ãä½ã£ã¦ãã¾ãäºãããã¦ãã¾ãã解ããããè¨ãã°ãGetter/Setterã®ã¿ãã¡ã½ããã¨ãã¦æã¤ã¯ã©ã¹ã§ãããã®ãããªã¯ã©ã¹ã¯ãã¼ã¿ãã¾ã¨ãã¦æ ¼ç´ããã³ã³ããã®ä¾¡å¤ãããªãããªãã¸ã§ã¯ãæåã§ããã¹ã姿ã§ã¯ãªãã¨ãã主張ã§ããããã¯ããã¡ã¤ã³ã¢ãã«è²§è¡çã*2ã¨å¼ã°ããçç¶ã§ç¥ããã¦ãã¾ããã¯ã©ã¹ã«ã¯é©åã«æ¯ãèããæãããäºãæã¾ããã¨ããèãæ¹ã§ãã
ãªãã¸ã§ã¯ãæåè¨èªãæ±ãããã°ã©ãã§ããã°ããã¡ã¤ã³ã¢ãã«ã®èãæ¹ã«ã¤ãã¦å¦ã¶å¿
è¦ãããã¾ããèªåããã¡ã¤ã³ã¢ãã«ãã©ããªç¶æ³ã§ãæèãã¦ããææãããã¾ããããã¾ã§é
·ãæç¶ãåã®ã³ã¼ããè¨è¨æ¸ã«è¦å´ãã¦ããäºãããããã¡ã¤ã³ã¢ãã«ã¨ããèãæ¹ã¯çæ³ã®è¨è¨æ¹æ³ã«æ ã£ãã®ã§ããããããã©ããªæã§ããã¡ã¤ã³ã¢ãã«ã¨ãã¦è¨è¨ããäºã¯èª¤ãã ã¨ããçµè«ã«è³ãã¾ããã
ç¹ã«ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã§ã¯ããªã¯ã¨ã¹ãã«å¯¾ãã¦å¯¾å¿ããä¸é£ã®å¦çãè¡ããã¾ããã¾ãã表示ãããã¼ã¿ã¯View層ã«ããã¬ã³ããªã³ã°ããã¦ã次ã®ãªã¯ã¨ã¹ãã®æã«å¿
è¦ã«å¿ãã¦åæ§æãããäºãã»ã¨ãã©ã§ããããã¨ãã¢ã¯ã·ã§ã³ï¼ã¦ã¼ã¹ã±ã¼ã¹ï¼æ¯ã«ãµã¼ãã¹ã¯ã©ã¹ãä½æããå¦çãã·ã¼ã±ã³ã·ã£ã«ã«è¡ãæ¹æ³ï¼ãã©ã³ã¶ã¯ã·ã§ã³ã¹ã¯ãªããï¼ã®æ¹ãé©ãã¦ããã¨ãè¨ããã®ã§ãã
ãã¡ã¤ã³ã¢ãã«ã¨ãã©ã³ã¶ã¯ã·ã§ã³ã¹ã¯ãªãããã©ã¡ããæ£ããã¨ããã¨ã¯ããã¾ãããä½ãç¹å®ã®ãã¡ã¤ã³ã«éå®ããã°ãã©ã¡ãããåãã¦ããã¨ããäºã¯ããã§ããããããããéè¦ãªã®ã¯ãã©ã³ã¹è¯ã使ããã¨ã§ã¯ãªãã§ããããï¼ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã§ããã°ããã©ã³ã¶ã¯ã·ã§ã³ã¹ã¯ãªããããã¼ã¹ã«å¿
è¦ã«å¿ãã¦æ¯ãèããã«ãã»ã«åããã®ãè¯ãã§ãããã
ãªãã¸ã§ã¯ãæåã«ã¤ãã¦ãåæ§ã§ãããªãã¸ã§ã¯ãæåãå¼·ãæèããããã¨ãä½ã§ãããã§ãããªã¢ãã£ãºã ãé©ç¨ãããã¨ãããããã£ã¼ã«ãã¯privateã§ãªããã°ãããªãã¨ãã強迫観念ã«ããããããã¾ããåç´ãªif-elseã§è¨è¿°ããæ¹ãéãã«è§£ãããããã¸ãã¯ã¯å¹¾ãã§ãããã®ã§ãã
ãã®ã¨ãã½ã¼ãã§ã¯ããã¡ã¤ã³ã¢ãã«ãæ¨å¥¨ãã¦ãã¡ã¤ã³ã¢ãã«æ¬ ä¹çã«ãªããªãããã«ããã¹ãã¨ãã主張ã§ããããã®ç¹ã¯å
±æãã¾ãããããããã¡ã¤ã³ã¢ãã«ä¿¡ä»°ãããããããã¡ã¤ã³ã¢ãã«çµ¶å¯¾çï¼ä»®ï¼ã«ãªããªãããã«ã¯æ³¨æãã¾ãããã
ããã°ã©ããç¥ãã¹ã97ã®ãã¨
- ä½è : åç°å人,Kevlin Henney,å¤ç®å¤§
- åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³
- çºå£²æ¥: 2010/12/18
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- è³¼å ¥: 58人 ã¯ãªãã¯: 2,107å
- ãã®ååãå«ãããã° (350件) ãè¦ã
*1:ä¸ä¾ãæããã°publicãªã¡ã½ããã20ããã¯ã©ã¹ãã2ã¤ãããªãã¯ã©ã¹ã®æ¹ãã·ã³ãã«ã§ãã
*2:ãã¡ã¤ã³ã¢ãã«æ¬ ä¹çã®æ¹ãè³ã«ããããï¼