Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1101

Add NormalizedNodeContainer.size()

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • 3.0.11, 4.0.9, 5.0.1
    • data-impl
    • None

    Description

      Binding-DOM codec needs to translate MapNodes into Maps. In order to do that efficiently, it needs to have access to the number of children. While this is available through MapNode.getValue().size(), this is forcing materialization of Map.values() view and an unmodifiable view – neither of which are desirable.

      Add NormalizedNodeContainer.size() to allow the implementation to expose this property without intermediate objects being instantiated.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: