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

(coll) Clarify all asLifoQueue(deq) operations except addAll map 1-1

XMLWordPrintable

      An expert writes,

      -------
      You might want to consider adding something like the following to the
      asLifoQueue(Deque) javadoc (modified from newSetFromMap):

      "Each method invocation on the queue returned by this method results in
      exactly one method invocation on the backing deque, with one exception. The
      addAll method is implemented as a sequence of addFirst invocations on the
      backing deque."

      The newSetFromMap specifies this detail so it might be useful if the
      asLifoQueue did too.
      -------

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: