Cap LazyCollections list 51/15851/1
authorRobert Varga <rovarga@cisco.com>
Sat, 28 Feb 2015 08:58:57 +0000 (09:58 +0100)
committerRobert Varga <rovarga@cisco.com>
Sat, 28 Feb 2015 20:48:57 +0000 (21:48 +0100)
commit9dbd7b3c9e93d964fd97a95748b5142cff369de1
tree55564ec3ffa1c269f086fd02aee2c1a835581e8d
parent6fe76da371be3bf60140b2a6456206a4c0617623
Cap LazyCollections list

When we move from a singleton to an ArrayList, specify the size as 2, as
the arraylist can grow beyond that, but will not waste space if it
remains at two elements.

Change-Id: Ie600f25f9e59aa5321f335b380d6d6930e4492ee
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/util/src/main/java/org/opendaylight/yangtools/util/LazyCollections.java