Add convert() to Coder 47/101847/1
authorJim Hahn <jrh3@att.com>
Mon, 17 Feb 2020 18:21:08 +0000 (13:21 -0500)
committerJim Hahn <jrh3@att.com>
Mon, 17 Feb 2020 18:46:43 +0000 (13:46 -0500)
commitae4f69745dbbf780323b40d5345c287ea22776f9
tree8a432ac0afcb29b7a996352ab52897af231c3646
parent840c5530cfa84d2b91200bf68c27a4f2bc67d1a4
Add convert() to Coder

This addresses Liam's review comment about moving the "translate"
method from the actor Util class into policy-common.
Added a method to Coder to convert from one object type to
another (e.g., from a Map to a POJO, or vice versa).

Issue-ID: POLICY-2363
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I2a0b5ab4ce4b0eeda216a57cbe23a8bb64f64940
utils/src/main/java/org/onap/policy/common/utils/coder/Coder.java
utils/src/main/java/org/onap/policy/common/utils/coder/StandardCoder.java
utils/src/test/java/org/onap/policy/common/utils/coder/CoderTest.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/coder/StandardCoderTest.java