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

        if (!(o instanceof Objects)) {
            return false;
        }

        Objects that = (Objects) o;

        if (this.name == null || this.type == null) {
            return false;
        }

        if (this.name.equals(that.name) && this.type.equals(that.type)) {
            return true;
        }

        return false;
    }