使用适当的通配符选择java泛型中的最佳方法

时间:2015-06-21 12:16:28

标签: java generics

我刚刚阅读了一本关于java泛型的书,我找到了function declared的列表,他们有compared which parameters they accept to work。请详细说明要使用的功能different cases

以下是函数声明列表

public static <T> void copy(List<T> dst, List<T> src)
public static <T> void copy(List<T> dst, List<? extends T> src)
public static <T> void copy(List<? super T> dst, List<T> src)
public static <T> void copy(List<? super T> dst, List<? extends T> src)

0 个答案:

没有答案
相关问题