All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dimajix.shaded.everit.schema.event.CombinedSchemaValidationEvent Maven / Gradle / Ivy

There is a newer version: 1.2.0-synapse3.3-spark3.3-hadoop3.3
Show newest version
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