@Override
    public String toString() {
        return "query profile type '" + getId() + "'";
    }
Two types are equal if they have the same id
container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileType.java