Class DataTreeIdentifier<T extends DataObject>
- java.lang.Object
-
- org.opendaylight.mdsal.binding.api.DataTreeIdentifier<T>
-
- All Implemented Interfaces:
Serializable
,Immutable
,MutationBehaviour<Immutable>
,Path<DataTreeIdentifier<?>>
public final class DataTreeIdentifier<T extends DataObject> extends Object implements Immutable, Path<DataTreeIdentifier<?>>, Serializable
A unique identifier for a particular subtree. It is composed of the logical data store type and the instance identifier of the root node.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(DataTreeIdentifier<?> other)
static <T extends DataObject>
@NonNull DataTreeIdentifier<T>create(@NonNull LogicalDatastoreType datastoreType, @NonNull InstanceIdentifier<T> rootIdentifier)
boolean
equals(Object obj)
@NonNull LogicalDatastoreType
getDatastoreType()
Return the logical data store type.@NonNull InstanceIdentifier<T>
getRootIdentifier()
Return theInstanceIdentifier
of the root node.int
hashCode()
String
toString()
-
-
-
Method Detail
-
create
public static <T extends DataObject> @NonNull DataTreeIdentifier<T> create(@NonNull LogicalDatastoreType datastoreType, @NonNull InstanceIdentifier<T> rootIdentifier)
-
getDatastoreType
public @NonNull LogicalDatastoreType getDatastoreType()
Return the logical data store type.- Returns:
- Logical data store type. Guaranteed to be non-null.
-
getRootIdentifier
public @NonNull InstanceIdentifier<T> getRootIdentifier()
Return theInstanceIdentifier
of the root node.- Returns:
- Instance identifier corresponding to the root node.
-
contains
public boolean contains(DataTreeIdentifier<?> other)
- Specified by:
contains
in interfacePath<T extends DataObject>
-
-