結果 : java generics method return type based on parameter