欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2/Agda, C++/Lisp/Haskell
Google Collections Library
来自开放百科 - 灰狐
				
								
				(版本间的差异)
				
																
				
				
								
| 第1行: | 第1行: | ||
| + | {{top news}}  | ||
| + | |||
The Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0, brought to you by Google.  | The Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0, brought to you by Google.  | ||
| 第13行: | 第15行: | ||
http://code.google.com/p/google-collections/  | http://code.google.com/p/google-collections/  | ||
| + | |||
| + | [[Category:Google]]  | ||
| + | [[Category:Java]]  | ||
2010年9月27日 (一) 04:02的最后版本
The Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0, brought to you by Google.
major new types are:
- BiMap. A Map that guarantees unique values, and supports an inverse view.
 - Multiset. A Collection that may contain duplicate values like a List, yet has order-independent equality like a Set. Often used to represent a histogram.
 - Multimap. Similar to Map, but may contain duplicate keys. Has subtypes SetMultimap and ListMultimap providing more specific behavior.
 
Static utility classes include:
- Comparators. Natural order, compound, null-friendly, ad-hoc . . .
 - Iterators and Iterables. Element-based equality, cycle, concat, partition, filter with predicate, transform with function . . .
 - Lists, Sets and Maps. A plethora of convenient factory methods and much more.
 - PrimitiveArrays: "boxing"/"unboxing" of primitive arrays
 
	分享您的观点