Mercurial > hg > Members > shoshi > TreeCMSv2
view src/treecms/test/GenericsTest.java @ 17:168deb591f21
commit
author | shoshi |
---|---|
date | Tue, 24 May 2011 00:33:12 +0900 |
parents | 8bf59f161b23 |
children | 019ca5abb1f0 |
line wrap: on
line source
package treecms.test; import java.util.List; public class GenericsTest<E extends Foo> { public static void main(String _args[]) { } public GenericsTest(E _instance) { } } interface Foo { public Foo get(); public List<Foo> list(Foo _f); } interface Hoge extends Foo { @Override public Hoge get(); public List<Foo> list(Hoge _h); }