@Test public void equalsTest() { assertTrue("Equals", TEST_IDENTIFIER1.equals(TEST_IDENTIFIER1)); assertTrue("Equals", TEST_IDENTIFIER1.equals(DataTreeIdentifier.create(LogicalDatastoreType.OPERATIONAL, InstanceIdentifier.create(TestDataObject1.class)))); assertFalse("Different", TEST_IDENTIFIER1.equals(DataTreeIdentifier.create(LogicalDatastoreType.CONFIGURATION, InstanceIdentifier.create(TestDataObject1.class)))); assertFalse("Different", TEST_IDENTIFIER1.equals(TEST_IDENTIFIER2)); assertFalse("Equals null", TEST_IDENTIFIER1.equals(null)); assertFalse("Different object", TEST_IDENTIFIER1.equals(new Object())); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof DataTreeIdentifier)) { return false; } final DataTreeIdentifier<?> other = (DataTreeIdentifier<?>) obj; if (datastoreType != other.datastoreType) { return false; } return rootIdentifier.equals(other.rootIdentifier); }
DataTreeIdentifier implements Immutable,
        Path<DataTreeIdentifier<?>>, Serializable { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof DataTreeIdentifier)) { return false; } final DataTreeIdentifier<?> other = (DataTreeIdentifier<?>) obj; if (datastoreType != other.datastoreType) { return false; } return rootIdentifier.equals(other.rootIdentifier); } }
DataTreeIdentifier implements Immutable,
        Path<DataTreeIdentifier<?>>, Serializable { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof DataTreeIdentifier)) { return false; } final DataTreeIdentifier<?> other = (DataTreeIdentifier<?>) obj; if (datastoreType != other.datastoreType) { return false; } return rootIdentifier.equals(other.rootIdentifier); } private  DataTreeIdentifier(final @NonNull LogicalDatastoreType datastoreType,
            final @NonNull InstanceIdentifier<T> rootIdentifier); }
DataTreeIdentifier implements Immutable,
        Path<DataTreeIdentifier<?>>, Serializable { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof DataTreeIdentifier)) { return false; } final DataTreeIdentifier<?> other = (DataTreeIdentifier<?>) obj; if (datastoreType != other.datastoreType) { return false; } return rootIdentifier.equals(other.rootIdentifier); } private  DataTreeIdentifier(final @NonNull LogicalDatastoreType datastoreType,
            final @NonNull InstanceIdentifier<T> rootIdentifier); static DataTreeIdentifier<T> create(
            final @NonNull LogicalDatastoreType datastoreType, final @NonNull InstanceIdentifier<T> rootIdentifier); @NonNull LogicalDatastoreType getDatastoreType(); @NonNull InstanceIdentifier<T> getRootIdentifier(); @Override boolean contains(final DataTreeIdentifier<?> other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); }
DataTreeIdentifier implements Immutable,
        Path<DataTreeIdentifier<?>>, Serializable { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof DataTreeIdentifier)) { return false; } final DataTreeIdentifier<?> other = (DataTreeIdentifier<?>) obj; if (datastoreType != other.datastoreType) { return false; } return rootIdentifier.equals(other.rootIdentifier); } private  DataTreeIdentifier(final @NonNull LogicalDatastoreType datastoreType,
            final @NonNull InstanceIdentifier<T> rootIdentifier); static DataTreeIdentifier<T> create(
            final @NonNull LogicalDatastoreType datastoreType, final @NonNull InstanceIdentifier<T> rootIdentifier); @NonNull LogicalDatastoreType getDatastoreType(); @NonNull InstanceIdentifier<T> getRootIdentifier(); @Override boolean contains(final DataTreeIdentifier<?> other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }