Constraints on a Wildcard : Generic Parameters « Generics « Java Tutorial






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

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








12.4.Generic Parameters
12.4.1.Using the ? wildcard
12.4.2.Using Bounded Wildcards in Methods
12.4.3.Multiple Type Parameters
12.4.4.Type Parameter Bounds
12.4.5.Constraints on a Wildcard