Collections Framework Enhancements in Java SE 7

New Interface, TransferQueue

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.

Improved Hash Function

Java SE 7u6 introduces an improved, alternative hash function for the following map and map-derived collection implementations:

The alternative hash function improves the performance of these map implementations when a large number of key hash collisions are encountered.

For Java SE 7u6, this alternative hash function is implemented as follows:

Copyright © 1993, 2024, Oracle and/or its affiliates. All rights reserved.