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

        PeopleData that = (PeopleData) o;

        if (key != null ? !key.equals(that.key) : that.key != null)
            return false;
        if (value != null ? !value.equals(that.value) : that.value != null)
            return false;

        return true;
    }