public void writeExternal(final ObjectOutput out) throws IOException
{
out.writeInt(this.map.size());
try
{
this.map.forEachKeyValue(new CheckedShortLongProcedure()
{
@Override
public void safeValue(short key, long value) throws IOException
{
out.writeShort(key);