add equals and hashcode to output descriptor

This commit is contained in:
Craig Raw 2024-11-18 15:14:20 +02:00
parent a90d553f1e
commit 817458a0c3

View file

@ -654,4 +654,21 @@ public class OutputDescriptor {
return keyBuilder.toString();
}
@Override
public final boolean equals(Object o) {
if(this == o) {
return true;
}
if(!(o instanceof OutputDescriptor that)) {
return false;
}
return toString().equals(that.toString());
}
@Override
public int hashCode() {
return toString().hashCode();
}
}