2015-04-22 19:40:22 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2015-04-22 19:40:22 +00:00
|
|
|
<t extends Menge> t TestMethode2() {
|
2013-10-18 11:33:46 +00:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2015-04-22 19:40:22 +00:00
|
|
|
<u extends Menge & Comparable & Serializable> u TestMethode3() {
|
2013-10-18 11:33:46 +00:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|