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

        MyType myType = (MyType) o;

        if (intParam != myType.intParam) return false;
        if (stringParam != null ? !stringParam.equals(myType.stringParam) : myType.stringParam != null) return false;

        return true;
    }