Simplify AbstractDOMBroker.isSupported() 64/71564/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Apr 2018 08:18:38 +0000 (10:18 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Apr 2018 08:18:38 +0000 (10:18 +0200)
commit337a466d08987077b4f7b60d810fcf3865cb88ae
treea2c3f46206f5ea08f02393d8788fb2ec9220692a
parent84d6864d26fddddd92da32fd00d57c7224d4213d
Simplify AbstractDOMBroker.isSupported()

This is simple check if all datastore are instances of the specified
contract -- simplify the expression with Streams.allMatch()
and Class.isInstance().

Change-Id: I260d3b2296f085023a722c3f59e08c4926e91b2d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/AbstractDOMBroker.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.