(coll) provide Collections unmodifiable, checked, synchronized for Queue, Deque

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: core-libs

      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.

            Assignee:
            Unassigned
            Reporter:
            Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: