public void putAll(java.util.Map<? extends K, ? extends V> m) {
        for (K key : m.keySet()) {
            validateCompatibleTypes(getDataType().getKeyType(), key);
        }
        for (V value : m.values()) {
            validateCompatibleTypes(getDataType().getValueType(), value);
        }
        values.putAll(m);
    }
Checks if another object is equal to this set.

@param o the object to check for equality with
@return true if o is an instance of WeightedSet and the two encapsulated Maps are equal, false otherwise
document/src/main/java/com/yahoo/document/datatypes/MapFieldValue.java