Adding a toString() method aids debugging and is generally nice.
Change-Id: I70944c85d6507e47aec282a018e7e101c684de62
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
fd18053813ba9954ea7efa58ad95993b2f9f599c)
*/
package org.opendaylight.mdsal.binding.api;
+import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import java.io.Serializable;
import javax.annotation.Nonnull;
}
return rootIdentifier.equals(other.rootIdentifier);
}
+
+ @Override
+ public String toString() {
+ return MoreObjects.toStringHelper(this).add("datastore", datastoreType).add("root", rootIdentifier).toString();
+ }
}
\ No newline at end of file