|
Description
|
A DESCRIPTION OF THE REQUEST :
java.util.Collections contains methods checkedFOO, synchronizedFOO(), and unmodifiableFOO() for FOO in { Collection, List, Map, ...}. With Java 6 / JDK 1.6 new collections interfaces java.util.Deque and java.util.Queue were added, but java.util.Collections does not yet provide helper methods for those new interfaces.
JUSTIFICATION :
For the same reason that there exists e.g. synchronizedList() (e.g. for request queues in a multi-threaded application), there should be synchronizedDeque() etc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Analogous to helper methods for existing collections intefaces.
CUSTOMER SUBMITTED WORKAROUND :
Can use synchronizedCollection(), unmodifiableCollection() for some applications, but methods specific to the Queue and Deque interfaces cannot be called.
Posted Date : 2006-04-03 08:39:10.0
|