Feeds

Google delivers Java 'convenience' APIs

Prepare for Guava juice

  • alert
  • submit to reddit

Top 5 reasons to deploy VMware with Tegile

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

Security for virtualized datacentres

More from The Register

next story
PEAK APPLE: iOS 8 is least popular Cupertino mobile OS in all of HUMAN HISTORY
'Nerd release' finally staggers past 50 per cent adoption
Microsoft to bake Skype into IE, without plugins
Redmond thinks the Object Real-Time Communications API for WebRTC is ready to roll
Microsoft promises Windows 10 will mean two-factor auth for all
Sneak peek at security features Redmond's baking into new OS
Mozilla: Spidermonkey ATE Apple's JavaScriptCore, THRASHED Google V8
Moz man claims the win on rivals' own benchmarks
Yes, Virginia, there IS a W3C HTML5 standard – as of now, that is
You asked for it! You begged for it! Then you gave up! And now it's HERE!
FTDI yanks chip-bricking driver from Windows Update, vows to fight on
Next driver to battle fake chips with 'non-invasive' methods
DEATH by PowerPoint: Microsoft warns of 0-day attack hidden in slides
Might put out patch in update, might chuck it out sooner
Ubuntu 14.10 tries pulling a Steve Ballmer on cloudy offerings
Oi, Windows, centOS and openSUSE – behave, we're all friends here
prev story

Whitepapers

Why cloud backup?
Combining the latest advancements in disk-based backup with secure, integrated, cloud technologies offer organizations fast and assured recovery of their critical enterprise data.
Getting started with customer-focused identity management
Learn why identity is a fundamental requirement to digital growth, and how without it there is no way to identify and engage customers in a meaningful way.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Top 5 reasons to deploy VMware with Tegile
Data demand and the rise of virtualization is challenging IT teams to deliver storage performance, scalability and capacity that can keep up, while maximizing efficiency.
Protecting against web application threats using SSL
SSL encryption can protect server‐to‐server communications, client devices, cloud resources, and other endpoints in order to help prevent the risk of data loss and losing customer trust.