結果 : java generic one of two types