This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Collections framework enhanced in Java 7? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "Collections framework enhanced in Java 7?" Watch "Collections framework enhanced in Java 7?" New topic

Collections framework enhanced in Java 7?

Astria Bothello

Joined: Mar 12, 2012
Posts: 11
I would like to know how was collections enhanced in Java 7? What are the new features?
Poornachandra Sarang

Joined: Apr 17, 2012
Posts: 27
The following is taken from

Collections Framework Enhancements in Java SE 7
The interface TransferQueue has been added. It is a refinement of the BlockingQueue interface in which producers can wait for consumers to receive elements. One implementation of the new interface is also included in this release, LinkedTransferQueue.

The book provides a detailed discussion on this addition and a dedicated example on the use of LinedTranferQueue.
I agree. Here's the link:
subject: Collections framework enhanced in Java 7?
It's not a secret anymore!