Simplify DeviceFlowRegistryImpl streaming 80/82580/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 20 Jun 2019 10:12:01 +0000 (12:12 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Jun 2019 12:58:23 +0000 (14:58 +0200)
commit9da05c313a96bea71e38e23ae657972c4cf62c0b
tree73427702fdba6ef3708b8739be007823fdba4d60
parent40acf4cc0816424078c700f5d58d9391fff70a56
Simplify DeviceFlowRegistryImpl streaming

This patch takes advantage of Optional.ifPresent() and nonnullFoo()
methods to simplify the stream processing pipeline.

Change-Id: I9395a011fd7956d909b0b22d334aa9dcee601db6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/registry/flow/DeviceFlowRegistryImpl.java