Implement ConstantArrayCollection.toString() 30/26830/4
authorRobert Varga <rovarga@cisco.com>
Fri, 11 Sep 2015 10:29:15 +0000 (12:29 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 14 Sep 2015 07:48:32 +0000 (07:48 +0000)
commit92180b8be60ca2d023ed5ec9477246ce0c1387c9
tree4ffe46cc0cf9808486d44fc59a6071263a8a2435
parent13bb06fa8a386783fa4796a8527b033b6d0f0271
Implement ConstantArrayCollection.toString()

Missing toString() breaks places which rely on collections properly
formatting their elements. Add an implementation and provide a simple
test suite. Also add hashCode()/equals().

Change-Id: I09ce7ecf2c541ab546e9b2a6f9916f0e76d4a511
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/util/src/main/java/org/opendaylight/yangtools/util/ConstantArrayCollection.java
common/util/src/test/java/org/opendaylight/yangtools/util/ConstantArrayCollectionTest.java [new file with mode: 0644]