ãªãã¸ã§ã¯ãã¯ç®çèª
ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°è¨èªã§ã¯ã¡ã½ãããå¼ã³åºãããã¨ãã
<ã¤ã³ã¹ã¿ã³ã¹å>.<ã¡ã½ããå>
ã¨ã¤ã³ã¹ã¿ã³ã¹ã示ãå¤æ°ã®ååã®ãã¨ã«ããã®ãªãã¸ã§ã¯ãã«å±ããã¡ã½ããã®ååã示ãã¾ãããã®ããã°ã©ãã³ã°è¨èªã®æ§æã¯ã誤解ãæãè¯ããªãæ§æã§ãã£ãã¨æãã¾ãã <ã¤ã³ã¹ã¿ã³ã¹å>.<ã¡ã½ããå> ã®æ§æã¯è±èªã® SV æåãé£æ³ãããã®ã§ãã¤ã³ã¹ã¿ã³ã¹ã主èªã§ã¡ã½ãããåè©ã§ããã¨åéããã¦ãã¾ãã¾ãã
ããããå®éã«ã¯ãªãã¸ã§ã¯ããç®çèªã¨ããæ¹ãèªç¶ãªââ人éã«åªããââããã°ã©ã ã¨ãªãããã«æãã¾ãã Java ã®æ¨æºã©ã¤ãã©ãªãè¦ã¦ãããªãã¸ã§ã¯ããç®çèªã¨ãªã£ã¦ãããã®ãå¤ãã§ããä¾ãã° Callable ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ call() ã¡ã½ãããæã¡ã¾ãã "callableObject.call();" ã¨ããã°ã©ã ä¸ã¯æ¸ãã¾ãããè±èªã§æ¸ã㨠"call the callable-object." ãæå³ãã¦ããã¨èããã®ãèªç¶ã§ããä»ã«ãã String åã® split ã¡ã½ããã説æã« "Splits this string around matches of the given regular expression." ã¨æ¸ããã¦ãã¾ããããã°ã©ãã³ã°è¨èªã§ã¯æã¯ç®çèªã®æ¬¡ã«åè©ãæ¥ããããªå½¢ã«ãªãã¾ãã主èªãæããã§ã¯ãªããã¨æãããã®ã§ãããããã¯èªæã§ã¡ã½ããã®å¼ã³åºãå ã§ã ï¼ããã°ã©ã ãæ¸ã人ã§ãè¨ç®æ©ã§ãããã§ããï¼ã
ãªãã¸ã§ã¯ãã主èªã«ãªã£ã¦ãã¾ãããã°ã©ã ã¯ãã¾ãè¯ãããã°ã©ã ã¨ã¯ããã¾ãããä¾ãã°ãFooManager ã®ãããªååã®ã¯ã©ã¹ãä½ã£ã¦ã "manager.doSomething();" ã¨æ¸ããã¨ãã§ããã®ã§ãããå¥ã«ãããªã static ã¡ã½ããã§è¨è¿°ããã°ååãªããã§ã¯ã©ã¹ã«ããæå³ãããã¾ãããããããã¯ã©ã¹ã¨ã¯ããã¾ã§ãã¼ã¿æ§é ã§ãã£ã¦ããã®ãã¼ã¿ã«å¯¾ããæä½ãã¡ã½ããã§ããæä½ã®å¯¾è±¡ã¨ã¯ã¤ã¾ãç®çèªã®ãã¨ã§ãã
ããã°ã©ãã³ã°è¨èªã¯æ±ºãã¦è±èªã§ã¯ãªãã®ã§ãããè±èªãããããã°ã©ã ãæ£ããããã°ã©ã ã ã¨ãã°ãã°æããã¦ããããã«æãã¾ãã ã¨ããããç§ããã®ãããªåéãããã¦ãã¾ããã <ã¤ã³ã¹ã¿ã³ã¹å>.<ã¡ã½ããå> ã®æ§æã¯ããã®ãããªèããæã£ã¦ããã¨ãã«ãé©åã§ãªãè¨è¨ãæãã¦ãã¾ãã¾ããããã¯ããã°ã©ãã³ã°è¨èªã®æ¬ é¥ã ã¨æãã¾ãã
ä¾å¤ã¯çå½å¤ãè¿ãã¡ã½ããã§ããJava ã® String åã ã¨ã contains() ã isEmpty() ãæãããã¾ãã "string.contains(sequence)" ã ã¨ã "string.isEmpty()" ã¨ããå½¢ã§ä½¿ããããããã®æã¯ãªãã¸ã§ã¯ãã主èªã¨ãªã£ãå½é¡ã¨ãã¦æ¯ãèãã¾ãããªãã¸ã§ã¯ããç®çèªã¨ãªãå ´åã®æã¯å½ä»¤ã§ããããªãã¸ã§ã¯ãã主èªã¨ãªãå ´åã®æã¯å½é¡ã§ããæ¢åã®ããã°ã©ã è¨èªã¯ãå½ä»¤ã¨å½é¡ãåºå¥ããªãããã®ç¹ãè¯ããªãã¨æã£ã¦ãã¾ãã