JavaCompilerCore/examples/scju/MethodGenerics.jav

18 lines
377 B
Plaintext
Raw Normal View History

import de.dhbwstuttgart.typeinference.Menge;
2013-10-18 11:33:46 +00:00
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() {
2013-10-18 11:33:46 +00:00
return null;
}
<u extends Menge & Comparable & Serializable> u TestMethode3() {
2013-10-18 11:33:46 +00:00
return null;
}
}