Interface HierarchicalIdentifier<T extends HierarchicalIdentifier<T>>
- All Superinterfaces:
Identifier
,Immutable
,Serializable
- All Known Implementing Classes:
AbstractHierarchicalIdentifier
,YangInstanceIdentifier
An
Identifier
tied to some tree-like structure, similar to how Path
is tied to a
conceptual file system. In addition to equivalence class implied by Identifier, the hierarchical nature of these
identifiers also introduces a notion of containment: a HierarchicalIdentifier is said to contain another
HierarchicalIdentifier if the former points to an ancestor node of the node pointed to by the latter in the same
instance of the tree-like structure they are defined on. This property is expressed through
contains(HierarchicalIdentifier)
.-
Method Summary
Methods inherited from interface org.opendaylight.yangtools.concepts.Identifier
equals, hashCode, toString
-
Method Details
-
contains
Check if this identifier contains some other identifier. If we take HierarchicalIdentifier to be similar to aPath
, this is method is the equivalent ofother.startsWith(this)
.- Parameters:
other
- Other identifier, may not benull
- Returns:
- True if this identifier contains the other identifier
- Throws:
NullPointerException
- ifother
isnull
-