Constraints on a Wildcard : Generic Parameters

  public static void saveAll(LinkedList<? extends java.io.Serializable> list) {

    
   }
 public static void analyze(LinkedList<? super MyClass> list) {
    
   }

  

posted @ 2015-06-28 20:18  hephec  阅读(144)  评论(0编辑  收藏  举报