public boolean matches(DimensionValues givenValues) {
        for (int i = 0; i < this.size() || i < givenValues.size() ; i++)
            if ( ! matches(this.get(i), givenValues.get(i)))
                return false;
        return true;
    }
Returns true if this is has the same value every place it has a value as the given values.
container-search/src/main/java/com/yahoo/search/query/profile/DimensionValues.java