class WrapperType {

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + name.hashCode();
        if (parent != null) {
            result = parent.hashCode() + result * prime;
        }
        return result;
    }

    private  WrapperType(String name, WrapperType parent);

}