范型接口->生成器1.通过范型接口(类似工厂类的构造方法);public interface Generator { T next(); }2.基本类型无法作为范型的参数类型;
1520
617
603
258
202
近期评论