@Test public void containsTest() { assertTrue("Contains", REF_TREE.contains(new DOMDataTreeIdentifier(LogicalDatastoreType.OPERATIONAL, REF_YII_IID))); assertEquals("Not contains", false, REF_TREE.contains(TEST_DIFF_TREE)); }
@Override public boolean contains(final DOMDataTreeIdentifier other) { return datastoreType == other.datastoreType && rootIdentifier.contains(other.rootIdentifier); }
DOMDataTreeIdentifier implements Immutable, Path<DOMDataTreeIdentifier>, Serializable,
        Comparable<DOMDataTreeIdentifier> { @Override public boolean contains(final DOMDataTreeIdentifier other) { return datastoreType == other.datastoreType && rootIdentifier.contains(other.rootIdentifier); } }
DOMDataTreeIdentifier implements Immutable, Path<DOMDataTreeIdentifier>, Serializable,
        Comparable<DOMDataTreeIdentifier> { @Override public boolean contains(final DOMDataTreeIdentifier other) { return datastoreType == other.datastoreType && rootIdentifier.contains(other.rootIdentifier); } DOMDataTreeIdentifier(final LogicalDatastoreType datastoreType,
            final YangInstanceIdentifier rootIdentifier); }
DOMDataTreeIdentifier implements Immutable, Path<DOMDataTreeIdentifier>, Serializable,
        Comparable<DOMDataTreeIdentifier> { @Override public boolean contains(final DOMDataTreeIdentifier other) { return datastoreType == other.datastoreType && rootIdentifier.contains(other.rootIdentifier); } DOMDataTreeIdentifier(final LogicalDatastoreType datastoreType,
            final YangInstanceIdentifier rootIdentifier); LogicalDatastoreType getDatastoreType(); YangInstanceIdentifier getRootIdentifier(); @Override boolean contains(final DOMDataTreeIdentifier other); DOMDataTreeIdentifier toOptimized(); @Override int hashCode(); @Override boolean equals(final @Nullable Object obj); @Override int compareTo(final DOMDataTreeIdentifier domDataTreeIdentifier); @Override String toString(); }
DOMDataTreeIdentifier implements Immutable, Path<DOMDataTreeIdentifier>, Serializable,
        Comparable<DOMDataTreeIdentifier> { @Override public boolean contains(final DOMDataTreeIdentifier other) { return datastoreType == other.datastoreType && rootIdentifier.contains(other.rootIdentifier); } DOMDataTreeIdentifier(final LogicalDatastoreType datastoreType,
            final YangInstanceIdentifier rootIdentifier); LogicalDatastoreType getDatastoreType(); YangInstanceIdentifier getRootIdentifier(); @Override boolean contains(final DOMDataTreeIdentifier other); DOMDataTreeIdentifier toOptimized(); @Override int hashCode(); @Override boolean equals(final @Nullable Object obj); @Override int compareTo(final DOMDataTreeIdentifier domDataTreeIdentifier); @Override String toString();  }