01: package test;
02:
03: import java.util.ArrayList;
04: import java.util.Comparator;
05: import java.util.HashMap;
06: import java.util.List;
07:
08: public class GenericBoundIsClassUse<T extends List> {
09:
10: public static <T extends ArrayList> void test1(T t) {
11: }
12:
13: public static <T extends HashMap & Comparator> void test1(T t) {
14: }
15:
16: }
|