1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
package generique;
public class SecondeClasse {
/**
* @param args
*/
public Requete requete ;
public String MaMethode(String s)
{
return s ;
}
public <T extends Colonne> String GetListe(T t, String param1, String param2)
{
return MaMethode(requete.GetListe(t, param1, param2)) ;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
SecondeClasse sec = new SecondeClasse() ;
sec.requete = new Requete() ;
Proprio proprio = new Proprio() ;
System.out.println(sec.<Proprio>GetListe(proprio, "no_commune", "nom_prop")) ;
}
} |