Refine search
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); MutableShortObjectMap<V> deserializedMap = new ShortObjectHashMap<V>(); for (int i = 0; i < size; i++) { deserializedMap.put(in.readShort(), (V) in.readObject()); } this.map = deserializedMap; }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); MutableObjectShortMap<V> deserializedMap = new ObjectShortHashMap<V>(); for (int i = 0; i < size; i++) { deserializedMap.put((V) in.readObject(), in.readShort()); } this.map = deserializedMap; }