@@ -0,0 +1,5 @@ | |||
public interface GenericInterface<O> { | |||
public O doSomething(Class<? extends O> type); | |||
} |
@@ -0,0 +1,9 @@ | |||
import java.util.Collection; | |||
public class Implementation implements GenericInterface<Collection<?>>{ | |||
public Collection<?> doSomething(Class<? extends Collection<?>> type) { | |||
return null; | |||
} | |||
} |