JDK1.5 The method Collections.unmodifiableQueue() is missing

XMLWordPrintable

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



      Name: rmT116609 Date: 04/13/2004


      A DESCRIPTION OF THE REQUEST :
      The class java.util.Collections contains these methods :

      - public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
      - public static <T> SortedSet<T> unmodifiableSortedSet(SortedSet<T> s)
      - public static <T> List<T> unmodifiableList(List<? extends T> list)
      - public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
      - public static <K,V> Map<K,V> unmodifiableMap(Map<? extends K,? extends V> m)
      - public static <K,V> SortedMap<K,V> unmodifiableSortedMap(SortedMap<K,? extends V> m)

      But this one is missing in JDK 1.5 (tiger) :
      - public static <T> Queue<T> unmodifiableQueue(Queue<? extends T> q);

      java.util.Queue is a new interface for a collection.


      JUSTIFICATION :
      scalability
      (Incident Review ID: 250079)
      ======================================================================

            Assignee:
            Josh Bloch (Inactive)
            Reporter:
            Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: