Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
java.util.concurrent.FutureTaskã®ã³ã³ã¹ãã©ã¯ã¿ã®å®ç¾©ã public FutureTask(Callable callable) http://docs.oracle.com/javase/jp/8/docs/api/java/util/concurrent/FutureTask.html#FutureTask-java.util.concurrent.Callable- ã¨Callable<V>ã¨ãªã£ã¦ãã¦Callable<? extends V>ãããªãã®ãä¸ä¾¿ã ã¨ãã話é¡ã ããã«ãã Thread Safe ãªæ±ç¨ãªãã¸ã§ã¯ãCache - ãããã¼ã®ã¡ã¢ ã®ãã£ãã·ã¥æ©æ§ã®ã³ã³ã¹ãã©ã¯ã¿ãCallable<? extends V>ã«åºæ¥ãªãã®ã ã¨ããããã(@gakuzzzz)ãåãã¦ããã®ã§ãå°æå ã®ãã¯ããã¯ã§å¯¾å¿ããã®ã以ä¸ã®ã³ã¼ãã imp
å æ¥twitter㧠"Expression Problem" ã¨ããåé¡ãç¥ã£ãã éçãªåä»ãã®ä¸ã§ãå ´ååãã®ãã¼ã¿æ§é ã«å¯¾ãã¦ãæ°ããå ´ååãã¨ãã®å ´åã«å¯¾ããæ°ããå¦çããå ã®ã½ã¼ã¹ã³ã¼ãã«æãå ãããã¨ãªãæ¡å¼µå®ç¾©ããã㨠2009-05-16 ãã®åé¡ãæå³ããã¨ãããèªãã«ã¯ã¾ããªãã¸ã§ã¯ãæåããæµãã辿ããã°ãªãã¾ãã ãªãã¸ã§ã¯ãæåã®ããªã¢ã¼ãã£ãºã Javaã®ãããªãªãã¸ã§ã¯ãæåã®è¨èªã§ãããç¹å®ã®ã¡ã½ããããããã¨ãæ½è±¡ã¯ã©ã¹Hogeã§ä¿è¨¼ããã¨ãããã public interface Hoge { void hoge(); } ãã®ã¨ããæ©è½æ§ãã¤ã¾ãã¡ã½ããã¨ããã®ã¯å¢ãããã¨ããªãåºå®ã®ãã®ã ããç¶æ¿ãã¦å®è£ ãããã¯ã©ã¹ã¨ããã®ã¯èªç±ã«å¢ãããã¨ãã§ãããããã¦ãæ½è±¡åHogeãæ±ã£ã¦ããæ¢åã³ã¼ãã¯ä¿®æ£ããå¿ è¦ããªãã ããã¯ããããéæ¾/ééåå(
Ktz @ktz_alias ãã¼Javaã£ã¦ãList<Hoge> list = Arrays.asList(new Hoge {{ ... }})ã§ããªãã®ã¼ï¼ 2013-09-03 14:00:37
Javaã®ã¸ã§ããªã¯ã¹ã®è©±é¡ã®ã²ã¨ã¤ã«new T()ããããã§ããªãã®ã§å°ããã¨ãããã¼ããããã å æ¥ã®ã»ãã·ã§ã³ã§ã¯ãã®å¯¾çã«ã¤ãã¦ãç°¡åã«è¿°ã¹ããä»æ¥ã¯ãã®ã¾ã¨ãã ã¾ã第ä¸ã«çãã¹ãã¯æ¬å½ã«new T()ããå¿ ç¶æ§ããããï¼ã¨ããã®ãæè«ã ãããã種ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ã¯ãã®å¿ ç¶æ§ãããã O/Rãããã³ã°ã®ãã¬ã¼ã ã¯ã¼ã¯ã§POJOã«ãã¼ã¿ãè©°ãã¦è¿ããã Webãã¬ã¼ã ã¯ã¼ã¯ã§HTTPãªã¯ã¨ã¹ããPOJOã«è©°ãã¦Controllerã¯ã©ã¹ã«æ¸¡ããã ï¼ãã®ãããã®è°è«ã¯Javaã®ã¸ã§ããªã¯ã¹ã§ï¼T.class ã new T() ãã§ããæ©ãã 話 ï¼åãã©ã¡ã¼ã¿ã®ã¤ã³ã¹ã¿ã³ã¹åã«é¢ãããã¬ã¼ã ã¯ã¼ã¯è¨è¨ããã±ã¼ã¹ã¹ã¿ãã£ï¼ - 主ã«è¨èªã¨ã·ã¹ãã éçºã«é¢ãã¦ã«ããã¾ã¨ã¾ã£ã¦ããï¼ ããã§ããããã®POJO(Plain Old Java Object - 端çã«è¨ãã°ãã¼ã¿ãæ ¼ç´ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}