This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Collections framework enhanced in Java 7?" Watch "Collections framework enhanced in Java 7?" New topic
Author

Collections framework enhanced in Java 7?

Astria Bothello
Greenhorn

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
author
Greenhorn

Joined: Apr 17, 2012
Posts: 27
The following is taken from http://docs.oracle.com/javase/7/docs/technotes/guides/collections/changes7.html

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.
 
 
subject: Collections framework enhanced in Java 7?
 
Similar Threads
New syntax "Object o:c", Java 5.0
Collections and Generics
Enhanced for loops
K&B 1.4 vs 5
Enhanced for loop - new to Java 5 or Java 6?