List、Set、Map 的 of() 方法 | Java9
(openhome.cc)
14 則討論
IngramChen
張貼於
Much of the benefit of collection literals can be gained by providing library APIs for creating small collection instances, at significantly reduced cost and risk compared to changing the language. For example, the code to create a small Set instance might look like this: