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

Determine difference between "element" and "data" in unmodifiable collections

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: docs
    • Labels:
      None

      Description

      In "Creating Unmodifiable Lists, Sets, and Maps":

      https://docs.oracle.com/en/java/javase/15/core/creating-immutable-lists-sets-and-maps.html

      A collection is considered unmodifiable if elements cannot be added, removed, or replaced. After you create an unmodifiable instance of a collection, it holds the same data as long as a reference to it exists.

      Should "data" be changed to "elements"?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rgallard Raymond Gallardo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: