Feeds

Google delivers Java 'convenience' APIs

Prepare for Guava juice

  • alert
  • submit to reddit

High performance access to file storage

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." ®

High performance access to file storage

More from The Register

next story
Android engineer: We DIDN'T copy Apple OR follow Samsung's orders
Veep testifies for Samsung during Apple patent trial
Microsoft: Windows version you probably haven't upgraded to yet is ALREADY OBSOLETE
Pre-Update versions of Windows 8.1 will no longer support patches
OpenSSL Heartbleed: Bloody nose for open-source bleeding hearts
Bloke behind the cockup says not enough people are helping crucial crypto project
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Windows XP still has 27 per cent market share on its deathbed
Windows 7 making some gains on XP Death Day
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
US taxman blows Win XP deadline, must now spend millions on custom support
Gov't IT likened to 'a Model T with a lot of things on top of it'
prev story

Whitepapers

Mainstay ROI - Does application security pay?
In this whitepaper learn how you and your enterprise might benefit from better software security.
Five 3D headsets to be won!
We were so impressed by the Durovis Dive headset we’ve asked the company to give some away to Reg readers.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Mobile application security study
Download this report to see the alarming realities regarding the sheer number of applications vulnerable to attack, as well as the most common and easily addressable vulnerability errors.