Feeds

Google delivers Java 'convenience' APIs

Prepare for Guava juice

  • alert
  • submit to reddit

Choosing a cloud hosting partner with confidence

Google has published code for Java to reduce the amount of hand coding needed for commonly occurring or popular features in applications.

The search giant has slipped out its Google Collections Library 1.0, extending Sun Microsystems' existing Java Collection Framework. The code has already been tested in Google's GMail, Reader, Blogger, Docs & Spreadsheets, AdWords, and AdSense.

The library includes new collection types for Multimap, Multiset, and Bitmap, a MapMaker builder for concurrent hash maps, and an Ordering collection Google described as "Comparator on steroids." You can read more here.

Jared Levy, one of the primary creators with Google colleague Kevin Bourrillion, told JavaLobby the main benefit for developers is convenience.

"The library's functionality simplifies your code so it's easier to write, read, and maintain," he told JavaLobby. "The Google Collections Library will improve your productivity as a developer, while reducing the amount of boilerplate low-level code you need to write."

Java Posse podcast co-host Dick Wall in 2008 outlined the pros and cons of the then-proposed library here.

Not everyone sees Google's code as the answer to making the notoriously complex Java easier to work with. Author Elliotte Rusty Harold wrote while Google's code saves additional typing it creates extra dependencies and may mean using additional code you don't need.

Looking ahead, Google said it plans to fold the Google Collections Library into its Guava Project for libraries in the "near future." Also planned: support for Java 6. Version 1.0 works on Java 5. Google blogged it "deprioritized" Java 6, saying it could deliver "99 per cent of the value while sticking to Java 5, so it's senseless to cut off a large chunk of user base." ®

Intelligent flash storage arrays

More from The Register

next story
Netscape Navigator - the browser that started it all - turns 20
It was 20 years ago today, Marc Andreeesen taught the band to play
UNIX greybeards threaten Debian fork over systemd plan
'Veteran Unix Admins' fear desktop emphasis is betraying open source
Sign off my IT project or I’ll PHONE your MUM
Honestly, it’s a piece of piss
Return of the Jedi – Apache reclaims web server crown
.london, .hamburg and .公司 - that's .com in Chinese - storm the web server charts
Chrome 38's new HTML tag support makes fatties FIT and SKINNIER
First browser to protect networks' bandwith using official spec
Admins! Never mind POODLE, there're NEW OpenSSL bugs to splat
Four new patches for open-source crypto libraries
Torvalds CONFESSES: 'I'm pretty good at alienating devs'
Admits to 'a metric ****load' of mistakes during work with Linux collaborators
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Cloud and hybrid-cloud data protection for VMware
Learn how quick and easy it is to configure backups and perform restores for VMware environments.
Three 1TB solid state scorchers up for grabs
Big SSDs can be expensive but think big and think free because you could be the lucky winner of one of three 1TB Samsung SSD 840 EVO drives that we’re giving away worth over £300 apiece.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.