@Override
    public int hashCode() {
        int hashCode = 0;
        int i = 0;
        for (String value : values) {
            i++;
            if (value != null)
                hashCode += value.hashCode() * i;
        }
        return hashCode;
    }
Helper method which uses compareTo to return whether this is most specific
container-search/src/main/java/com/yahoo/search/query/profile/DimensionValues.java