Add BindingMap helper class 20/92720/13
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 25 Sep 2020 16:20:22 +0000 (18:20 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 29 Sep 2020 18:37:55 +0000 (20:37 +0200)
commit7c1b3bcc2d83999599e7fc613bdc53d272e2237c
tree1c4b9bde79278232debee9d49ba903908ce40c49
parentf4a0fd336dc17f997035b5b3d526d5cab57364b8
Add BindingMap helper class

Changing the mapping of keyed lists from List to Map made the baseline
generated builders hard to use, as there isn't an easy way to build
a map of entries in a fluent way.

BindingMap fills this role, providing both a direct way via
BindingMap.of(V...) as well as Builder-based interface via
BindingMap.Builder.

JIRA: MDSAL-553
Change-Id: Ieb3093c37b30f79666bffb50aa22a20922e41344
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Illia <illia.ihushev@pantheon.tech>
binding/mdsal-binding-test-model/src/main/yang/list-as-child.yang [new file with mode: 0644]
binding/mdsal-binding-test-model/src/test/java/org/opendaylight/mdsal/binding/test/model/TestBindingMap.java [new file with mode: 0644]
binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/BindingMap.java [new file with mode: 0644]