@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        final EnumConstantImpl that = (EnumConstantImpl) o;
        return Objects.equals(parent, that.parent) &&
                Objects.equals(name, that.name) &&
                Objects.equals(javadoc, that.javadoc) &&
                Objects.equals(imports, that.imports) &&
                Objects.equals(classes, that.classes) &&
                Objects.equals(initializers, that.initializers) &&
                Objects.equals(methods, that.methods) &&
                Objects.equals(fields, that.fields) &&
                Objects.equals(values, that.values) &&
                Objects.equals(annotations, that.annotations);
    }
Copy constructor.

@param prototype  the prototype
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/model/EnumConstantImpl.java