1 package javaparser; 2 3 import java.util.List; 4 import java.util.Map; 5 6 public class GenericClass<S> { 7 get()8 public S get() { 9 return null; 10 } 11 genericMethodWithNestedReturnType()12 public <T> List<List<T>> genericMethodWithNestedReturnType() { 13 return null; 14 } 15 genericMethodWithDoubleTypedReturnType()16 public <T,V> Map<T,V> genericMethodWithDoubleTypedReturnType() { 17 return null; 18 } 19 copy(GenericClass<T> input)20 public static <T> GenericClass<T> copy(GenericClass<T> input) { 21 return null; 22 } 23 complexGenerics()24 public static <T extends Object & Foo<? extends T>> T complexGenerics() { 25 return null; 26 } 27 asList(T element)28 public static <T> List<T> asList(T element) { 29 return null; 30 } 31 32 public interface Foo<T> { 33 } 34 35 public interface Bar { 36 public static List<NestedBar> CONSTANT = null; 37 38 public interface NestedBar { 39 } 40 } 41 42 } 43