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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • docs
    • None

      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"?

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

              Created:
              Updated: