[YANGTOOLS-1101] Add NormalizedNodeContainer.size() Created: 22/Apr/20  Updated: 07/May/20  Resolved: 22/Apr/20

Status: Resolved
Project: yangtools
Component/s: data-impl
Affects Version/s: None
Fix Version/s: 3.0.11, 4.0.9, 5.0.1

Type: Improvement Priority: High
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks MDSAL-539 Add lazy-computed Map implementation ... Resolved
blocks MDSAL-551 Allow Binding/DOM lists to be populat... Resolved

 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.


Generated at Wed Feb 07 20:55:11 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.