class GeneratedEnumType implements Type {
    
    private final String typeName;
    private final List<String> constants;

    public GeneratedEnumType(String typeName, List<String> constants) {
        this.typeName  = requireNonNull(typeName);
        this.constants = unmodifiableList(new ArrayList<>(constants));
    }

    public List<String> getEnumConstants() {
        return constants;
    }

    @Override
    public String getTypeName() {
        return typeName;
    }

    @Override
    public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        int result = getTypeName().hashCode();
        result = 31 * result + constants.hashCode();
        return result;
    }
}

        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());
        }
    
<no_super_class>