This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Collections framework enhanced in Java 7?
 
Similar Threads
Collections and Generics
Enhanced for loop - new to Java 5 or Java 6?
New syntax "Object o:c", Java 5.0
Enhanced for loops
K&B 1.4 vs 5