commit | 93888fbb767670380432d11967e86fbe844655a8 | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Thu Jun 21 17:41:50 2018 -0700 |
committer | Charles Chan <charles@opennetworking.org> | Mon Jun 25 17:57:16 2018 +0000 |
tree | 2e326066abd776163cae8654a4333c75894ebf9e | |
parent | 4e0b427953962be1a96a1301b758fcdfee6ee890 [diff] [blame] |
Implement toString in RouteSet and RouteInfo Change-Id: I35a5f0f3245c05809ace0bf6eedb745d12f50cd5
diff --git a/apps/route-service/api/src/main/java/org/onosproject/routeservice/RouteSet.java b/apps/route-service/api/src/main/java/org/onosproject/routeservice/RouteSet.java index f464e5d..387dc73 100644 --- a/apps/route-service/api/src/main/java/org/onosproject/routeservice/RouteSet.java +++ b/apps/route-service/api/src/main/java/org/onosproject/routeservice/RouteSet.java
@@ -16,6 +16,7 @@ package org.onosproject.routeservice; +import com.google.common.base.MoreObjects; import com.google.common.collect.ImmutableSet; import org.onlab.packet.IpPrefix; @@ -94,4 +95,13 @@ Objects.equals(this.prefix, that.prefix) && Objects.equals(this.routes, that.routes); } + + @Override + public String toString() { + return MoreObjects.toStringHelper(RouteSet.class) + .add("tableId", tableId) + .add("prefix", prefix) + .add("routes", routes) + .toString(); + } }