* A unique identifier for a particular subtree. It is composed of the logical
* data store type and the instance identifier of the root node.
*/
-public final class DataTreeIdentifier<T extends DataObject> implements Immutable, Path<DataTreeIdentifier<?>>, Serializable {
+public final class DataTreeIdentifier<T extends DataObject> implements Immutable,
+ Path<DataTreeIdentifier<?>>, Serializable {
private static final long serialVersionUID = 1L;
private final InstanceIdentifier<T> rootIdentifier;
private final LogicalDatastoreType datastoreType;
}
/**
- * Return the {@link YangInstanceIdentifier} of the root node.
+ * Return the {@link InstanceIdentifier} of the root node.
*
* @return Instance identifier corresponding to the root node.
*/
- public @Nonnull InstanceIdentifier<?> getRootIdentifier() {
+ public @Nonnull InstanceIdentifier<T> getRootIdentifier() {
return rootIdentifier;
}
}
return rootIdentifier.equals(other.rootIdentifier);
}
-}
\ No newline at end of file
+
+ @Override
+ public String toString() {
+ return getClass().getSimpleName() + "{datastoreType = " + datastoreType + ", rootIdentifier = "
+ + rootIdentifier + "}";
+ }
+}