結果 : java generic return type based on parameter