Fix RouteKey and surrounding code 95/78495/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Dec 2018 11:39:20 +0000 (12:39 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Dec 2018 11:39:20 +0000 (12:39 +0100)
commit21938f672ef6d2dd02e0120452f921ba4929cc8f
treeb12de12d5aee5517fbb8c9708ab9bdc0e8af098f
parentd5701ce0d5c14e0a6fc817c877525f14ddb2fd8b
Fix RouteKey and surrounding code

This cleans up RouteKey to be a properly-designed and efficient
DTO:
- prevent useless boxing
- use proper prime in hashCode
- make sure nullness is propagated
- improve compareTo performance

Change-Id: Ibfa1f57fee8dbc4a0a4c1a0f0e47664b48f4d055
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/AddPathAbstractRouteEntry.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/AddPathBestPath.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/AddPathSelector.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/RouteKey.java
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/add/all/paths/AllPathsRouteEntry.java