2006-10-01ãã1ã¶æéã®è¨äºä¸è¦§
Generics ã使ç¨ãã以ä¸ã®ã³ã¼ããããã¾ãã import java.util.EventObject; public class FooEvent extends EventObject { private Class barClazz; public FooEvent(Bar bar) { super (bar); this.barClazz = bar.getClass(); } @Override public Bar geâ¦
ç´ æ´ãããæç« ãè¦ã¤ããã®ã§ãæãã¦ããã http://d.hatena.ne.jp/kowagari/20040723/1090574050 æãæ·»ããã®ããªããã¡ãªã®ãã£ã¦ããã¨ãæ®æ®µã¡ã¬ããããæ £ãã¦ã人ã¯ãããªé¢¨ã«è¶ç¶ã¨ããç¬é¡ã§ã¡ã¬ãã«æãæ·»ãããããªãããã§ããã¤ã¾ãããã§ã®â¦
ä»äºããã¦ããã¨ã空ãã¦ããæéã«å¥ã®ä½æ¥ãå²ãå½ã¦ã¦å¹çãä¸ãããã¨ãããã¨ãããã®ã§ãããå®éã¯ãã¾ãå¹çãä¸ãããªããã¨ãå¤ãã§ãã ã©ããã¦ããè¤æ°ã®ä½æ¥ããã£ããæ¥ããããã¨ãã«ãä½ããã®ãªã¼ãã¼ããããçºçãã¦ãã¾ããæãããã«â¦