Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5030930

JDK1.5 The method Collections.unmodifiableQueue(Queue<? extends T>) is missing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • 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: 250071)
      ======================================================================

            jjb Josh Bloch (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: