@Override
    public Object getWrappedValue() {
        if (values instanceof MapFieldValue.MapWrapper) {
            return ((MapFieldValue.MapWrapper) values).map;
        }
        Map tmpMap = new HashMap();
        for (Entry<K, V> kvEntry : values.entrySet()) {
            tmpMap.put(kvEntry.getKey().getWrappedValue(), kvEntry.getValue().getWrappedValue());
        }
        return tmpMap;
    }
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