Home | History | Annotate | Download | only in collect

Lines Matching refs:Map

27 import java.util.Map;
42 * Reads a count corresponding to a serialized map, multiset, or multimap. It
43 * returns the size of a map serialized by {@link
44 * #writeMap(Map, ObjectOutputStream)}, the number of distinct elements in a
59 * Stores the contents of a map in an output stream, as part of serialization.
67 public static <K, V> void writeMap(Map<K, V> map, ObjectOutputStream stream)
69 stream.writeInt(map.size());
70 for (Map.Entry<K, V> entry : map.entrySet()) {
77 * Populates a map by reading an input stream, as part of deserialization.
81 public static <K, V> void populateMap(Map<K, V> map, ObjectInputStream stream)
84 populateMap(map, stream, size);
88 * Populates a map by reading an input stream, as part of deserialization.
93 public static <K, V> void populateMap(Map<K, V> map, ObjectInputStream stream,
100 map.put(key, value);
166 for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) {