class ComponentType {

    private final String typeName;

    public ComponentType(String typeName) {
        this.typeName = typeName;
    }

    /**
     * get component type name
     *
     * @return type name
     */
    public String getName() {
        return typeName;
    }

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

    @Override
    public int hashCode() {
        return typeName.hashCode();
    }
}

        if (this == o) {
            return true;
        }
        if (!(o instanceof ComponentType that)) {
            return false;
        }

        return typeName.equals(that.typeName);
    
<no_super_class>