}
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
{
int size = in.readInt();
MutableDoubleIntMap deserializedMap = new DoubleIntHashMap();
for (int i = 0; i < size; i++)
{
deserializedMap.put(in.readDouble(), in.readInt());
}
this.map = deserializedMap;
}