com.dimajix.shaded.everit.schema.event.CombinedSchemaValidationEvent Maven / Gradle / Ivy
package com.dimajix.shaded.everit.schema.event;
import java.util.Objects;
import com.dimajix.shaded.everit.schema.CombinedSchema;
import com.dimajix.shaded.everit.schema.Schema;
public abstract class CombinedSchemaValidationEvent extends ValidationEvent {
final Schema subSchema;
public CombinedSchemaValidationEvent(CombinedSchema schema, Schema subSchema, Object instance) {
super(schema, instance);
this.subSchema = subSchema;
}
@Override public boolean equals(Object o) {
if (this == o)
return true;
if (!(o instanceof CombinedSchemaValidationEvent))
return false;
if (!super.equals(o))
return false;
CombinedSchemaValidationEvent that = (CombinedSchemaValidationEvent) o;
return subSchema.equals(that.subSchema);
}
@Override public int hashCode() {
return Objects.hash(super.hashCode(), subSchema);
}
public Schema getSubSchema() {
return subSchema;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy