MCPcopy Create free account
hub / github.com/antlr/codebuff / populateMap

Method populateMap

output/java_guava/1.4.17/Serialization.java:77–80  ·  view source on GitHub ↗

Populates a map by reading an input stream, as part of deserialization. See #writeMap for the data format.

(Map<K, V> map, ObjectInputStream stream)

Source from the content-addressed store, hash-verified

75 */
76
77 static <K, V> void populateMap(Map<K, V> map, ObjectInputStream stream) throws IOException, ClassNotFoundException {
78 int size = stream.readInt();
79 populateMap(map, stream, size);
80 }
81
82 /**
83 * Populates a map by reading an input stream, as part of deserialization.

Callers 3

readObjectMethod · 0.95
readObjectMethod · 0.95
readObjectMethod · 0.95

Calls 3

readIntMethod · 0.65
putMethod · 0.65
readObjectMethod · 0.45

Tested by

no test coverage detected