忘れがちなのでメモ 生成したクラスをジェネリクスに認識させるコード @SuppressWarnings("rawtypes") public Class type = null; /** * コンストラクター * @param e */ public Hoge(T... e) { @SuppressWarnings("unchecked") Class<T> type = (Class<T>) e.getClass().getComponentType(); this.type = type; }