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

        if (o instanceof GeneratedEnumType) {
            final GeneratedEnumType that = (GeneratedEnumType) o;
            return typeName.equals(that.typeName)
                && constants.equals(that.constants);
        } else {
            return typeName.equals(((Type) o).getTypeName());
        }
    }
@author  Emil Forslund
@author  Simon Jonasson
@since   3.0.0
plugin-parent/enum-generator/src/main/java/com/speedment/plugins/enums/internal/GeneratedEnumType.java