JavaCompilerCore/examples/scju/MethodGenerics.jav

18 lines
377 B
Java
Executable File

import de.dhbwstuttgart.typeinference.Menge;
import java.io.Serializable;
import java.lang.Comparable;
public class MethodGenerics<typ1> {
public typ1 TestMethode(String wert1, typ1 that, String wert2) {
return null;
}
<t extends Menge> t TestMethode2() {
return null;
}
<u extends Menge & Comparable & Serializable> u TestMethode3() {
return null;
}
}