boolean checkAndRemove(FieldValue key, FieldPathIteratorHandler.ModificationStatus status, boolean wasModified, List<FieldValue> keysToRemove) {
        if (status == FieldPathIteratorHandler.ModificationStatus.REMOVED) {
            keysToRemove.add(key);
            return true;
        } else if (status == FieldPathIteratorHandler.ModificationStatus.MODIFIED) {
            return true;
        }

        return wasModified;
    }
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