We are relying on equality to detect changes. Make sure that equality is
not identity.
JIRA: YANGTOOLS-745
Change-Id: I13b62b12ed9af7e80c4c3e883730b7e5e39e0240
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
return Collections.unmodifiableMap(configuration);
}
+ @Override
+ public int hashCode() {
+ return getIdentifier().hashCode() + configuration.hashCode();
+ }
+
+ @Override
+ public boolean equals(final Object obj) {
+ return this == obj || obj instanceof FileGeneratorArg other && getIdentifier().equals(other.getIdentifier())
+ && configuration.equals(other.getConfiguration());
+ }
+
@Override
public String toString() {
return MoreObjects.toStringHelper(this).add("id", identifier).add("configuration", configuration).toString();