3
Arrays.asList()与Collections.singletonList()
使用Arrays.asList(something)优于Collections.singletonList(something)来构成包含一项的列表是否有优势(或有很大不同)?后者使返回的列表也不可变。
136
java
collections