@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof AttributeMapping)) {
            return false;
        }

        AttributeMapping that = (AttributeMapping) o;

        if (position != that.position) {
            return false;
        }
        if (name != null ? !name.equals(that.name) : that.name != null) {
            return false;
        }
        if (mapping != null ? !mapping.equals(that.mapping) : that.mapping != null) {
            return false;
        }
        return type == that.type;
    }
Holder object to store mapping information for a given Siddhi Attribute
{@link io.siddhi.query.api.definition.Attribute}
modules/siddhi-core/src/main/java/io/siddhi/core/stream/input/source/AttributeMapping.java