private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); setDelegates(new HashMap<K, V>(), new HashMap<V, K>()); Serialization.populateMap(this, stream); }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int size = Serialization.readCount(stream); setDelegates(Maps.<K, V>newHashMapWithExpectedSize(size), Maps.<V, K>newHashMapWithExpectedSize(size)); Serialization.populateMap(this, stream, size); }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int size = Serialization.readCount(stream); setDelegates(Maps.<K, V>newHashMapWithExpectedSize(size), Maps.<V, K>newHashMapWithExpectedSize(size)); Serialization.populateMap(this, stream, size); }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int size = Serialization.readCount(stream); setDelegates(Maps.<K, V>newHashMapWithExpectedSize(size), Maps.<V, K>newHashMapWithExpectedSize(size)); Serialization.populateMap(this, stream, size); }
@GwtIncompatible("java.io.ObjectInputStream") private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int size = Serialization.readCount(stream); setDelegates(Maps.<K, V>newHashMapWithExpectedSize(size), Maps.<V, K>newHashMapWithExpectedSize(size)); Serialization.populateMap(this, stream, size); }
@GwtIncompatible("java.io.ObjectInputStream") private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int size = Serialization.readCount(stream); setDelegates(Maps.<K, V>newHashMapWithExpectedSize(size), Maps.<V, K>newHashMapWithExpectedSize(size)); Serialization.populateMap(this, stream, size); }