@Override
    @Deprecated
    public void printXml(XmlStream xml) {
        XmlSerializationHelper.printWeightedSetXml(this, xml);
    }
Creates a new weighted set with a given initial capacity.

@param initialCapacity the initial capacity to use for the encapsulated Map
document/src/main/java/com/yahoo/document/datatypes/WeightedSet.java