Sho SHIMIZU

Implement toString in OpticalConnectivityIntent

Change-Id: I0035c8cdd9f909af24a47b0db04d306c33aa8c44
......@@ -15,11 +15,12 @@
*/
package org.onosproject.net.intent;
import java.util.Collections;
import com.google.common.base.MoreObjects;
import org.onosproject.core.ApplicationId;
import org.onosproject.net.ConnectPoint;
import java.util.Collections;
import static com.google.common.base.Preconditions.checkNotNull;
/**
......@@ -147,4 +148,17 @@ public final class OpticalConnectivityIntent extends Intent {
public ConnectPoint getDst() {
return dst;
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("id", id())
.add("key", key())
.add("appId", appId())
.add("priority", priority())
.add("resources", resources())
.add("src", src)
.add("dst", dst)
.toString();
}
}
......