Feeds

Google delivers Java 'convenience' APIs

Prepare for Guava juice

  • alert
  • submit to reddit

Combat fraud and increase customer satisfaction

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
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Batten down the hatches, Ubuntu 14.04 LTS due in TWO DAYS
Admins dab straining server brows in advance of Trusty Tahr's long-term support landing
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
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Oh no, Joe: WinPhone users already griping over 8.1 mega-update
Hang on. Which bit of Developer Preview don't you understand?
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Windows 8.1, which you probably haven't upgraded to yet, ALREADY OBSOLETE
Pre-Update versions of new Windows version will no longer support patches
Ditch the sync, paddle in the Streem: Upstart offers syncless sharing
Upload, delete and carry on sharing afterwards?
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
prev story

Whitepapers

Designing a defence for mobile apps
In this whitepaper learn the various considerations for defending mobile applications; from the mobile application architecture itself to the myriad testing technologies needed to properly assess mobile applications risk.
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.
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.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Securing web applications made simple and scalable
In this whitepaper learn how automated security testing can provide a simple and scalable way to protect your web applications.