Google Guava

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
Google Guava
Original author(s) Kevin Bourrillion and Jared Levy (Google Collections Library) [1]
Developer(s) Google
Stable release 19.0 / December 9, 2015 (2015-12-09)
Development status Active
Written in Java
Operating system Cross-platform
Type Utility and Collection Libraries
License Apache License 2.0

Google Guava is an open-source set of common libraries for Java, mainly developed by Google engineers.


Google Guava can be roughly divided into three components: basic utilities to reduce menial labors to implement common methods and behaviors, an extension to the Java collections framework (JCF) formerly called the Google Collections Library, and other utilities which provide convenient and productive features such as functional programming, caching, range objects, and hashing.[2]

The creation and architecture of the collection component were partly motivated by generics introduced in JDK 1.5.[1] Although generics improve the productivity of programmers, the standard JCF does not provide sufficient functionality, and its complement Apache Commons Collections has not adopted generics in order to maintain backward compatibility.[1] This fact led two engineers Kevin Bourrillion and Jared Levy to develop an extension to JCF, which provides additional generic classes such as multisets, multimaps, bimaps, and immutable collections.[1]

The library's design and code were advised and reviewed by Joshua Bloch, the original lead designer of the Java Collections framework, and Doug Lea, one of the lead designers of concurrency utilities in JDK.[1]

As of April 2012, Guava ranked the 12th most popular Java library, next to the Apache Commons projects and a few others.[3] Research performed in 2013 on 10,000 GitHub projects found that Google-made libraries, such as Google Web Toolkit and Guava, constituted 7 of the top 100 most popular libraries in Java, and that Guava was the 8th most popular Java library.[4]


While Google Guava is an open source project, the maintainers of Guava do not encourage external contributions.[5] Kevin Bourrillion wrote a Google+ post explaining that while Guava is open source it is also a collection of APIs referenced throughout the internal Google codebase. Bourrillion writes, "I don't think many of you understand: the work you've done to produce that patch is actually minuscule compared to the total amount of work we have to do to put it in Guava." This post and the reaction to this post sparked a debate over the public/private nature of projects like Google Guava and extensive discussion over what constitutes an open source project.[6]

See also


  1. 1.0 1.1 1.2 1.3 1.4 Wielenga, Geertjan (2007-10-23). "What is the Google Collections Library?". Javalobby. Retrieved 2013-02-03.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
  3. O'Brien, Tim (2012-05-14). "Google Guava Shows Strong Growth in April". Sonatype. Retrieved 2013-02-03.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
  4. Weiss, Tal (2013-11-20). "We Analyzed 30,000 GitHub Projects – Here Are The Top 100 Libraries in Java, JS and Ruby". Retrieved 2014-02-04.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
  5. Bourrillion, Kevin (2011-10-14). "The story with #guava and your patches". Retrieved 2015-07-17.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
  6. "Hackernews discussion of Bourrillion's statement on patches". 2011-10-15. Retrieved 2015-07-17.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>

External links