Use a utility function for key-value to map conversions
authorStephen Kitt <skitt@redhat.com>
Thu, 25 Feb 2016 15:57:26 +0000 (16:57 +0100)
committerStephen Kitt <skitt@redhat.com>
Wed, 9 Mar 2016 09:23:25 +0000 (10:23 +0100)
commit3ead3d4a66e014b3cfa3ea1f731630c36906a4b7
treec04d4783bbfbd234ac6e28b4c494cb7412ce5d4d
parent161ca690042d2f9c1806d54277beedab4a999d47
Use a utility function for key-value to map conversions

YangUtils::convertKeyValueListToMap() reproduces the behaviour
expected when converting a list of YANG key values to a map: it checks
that all the keys and values are non-null, and converts them to
strings using the appropriate methods in each YANG type.

This patch can't be back-ported to Beryllium since it uses Java 8
constructs.

Change-Id: Iaeb751ca552caf6b8f5a6d5a6e506e5d2aa4e63f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
utils/pom.xml
utils/yang-utils/pom.xml [new file with mode: 0644]
utils/yang-utils/src/main/java/org/opendaylight/ovsdb/utils/yang/YangUtils.java [new file with mode: 0644]