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

Add NormalizedNodeContainer.size()

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: