This class assists the implementation of collection classes. Do not use this class to serialize collections that are defined elsewhere.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T> Serialization. | |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void | populateMap(Map<K, V> map, ObjectInputStream stream)
Populates a map by reading an input stream, as part of deserialization. |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void | populateMap(Map<K, V> map, ObjectInputStream stream, int size)
Populates a map by reading an input stream, as part of deserialization. |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void | populateMultimap(Multimap<K, V> multimap, ObjectInputStream stream)
Populates a multimap by reading an input stream, as part of deserialization. |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void | populateMultimap(Multimap<K, V> multimap, ObjectInputStream stream, int distinctKeys)
Populates a multimap by reading an input stream, as part of deserialization. |
| pack-priv static <E extends @Nullable Object> void | populateMultiset(Multiset<E> multiset, ObjectInputStream stream)
Populates a multiset by reading an input stream, as part of deserialization. |
| pack-priv static <E extends @Nullable Object> void | populateMultiset(Multiset<E> multiset, ObjectInputStream stream, int distinctElements)
Populates a multiset by reading an input stream, as part of deserialization. |
| pack-priv static int | readCount(ObjectInputStream stream)
Reads a count corresponding to a serialized map, multiset, or multimap. |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void | writeMap(Map<K, V> map, ObjectOutputStream stream)
Stores the contents of a map in an output stream, as part of serialization. |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void | writeMultimap(Multimap<K, V> multimap, ObjectOutputStream stream)
Stores the contents of a multimap in an output stream, as part of serialization. |
| pack-priv static <E extends @Nullable Object> void | writeMultiset(Multiset<E> multiset, ObjectOutputStream stream)
Stores the contents of a multiset in an output stream, as part of serialization. |
| Serialization | back to summary |
|---|---|
| private Serialization() | |
| getFieldSetter | back to summary |
|---|---|
| pack-priv static <T> Serialization. | |
| populateMap | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void populateMap(Map<K, V> map, ObjectInputStream stream) throws IOException, ClassNotFoundException Populates a map by reading an input stream, as part of deserialization. See | |
| populateMap | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void populateMap(Map<K, V> map, ObjectInputStream stream, int size) throws IOException, ClassNotFoundException Populates a map by reading an input stream, as part of deserialization. See | |
| populateMultimap | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void populateMultimap(Multimap<K, V> multimap, ObjectInputStream stream) throws IOException, ClassNotFoundException Populates a multimap by reading an input stream, as part of deserialization. See | |
| populateMultimap | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void populateMultimap(Multimap<K, V> multimap, ObjectInputStream stream, int distinctKeys) throws IOException, ClassNotFoundException Populates a multimap by reading an input stream, as part of deserialization. See | |
| populateMultiset | back to summary |
|---|---|
| pack-priv static <E extends @Nullable Object> void populateMultiset(Multiset<E> multiset, ObjectInputStream stream) throws IOException, ClassNotFoundException Populates a multiset by reading an input stream, as part of deserialization. See | |
| populateMultiset | back to summary |
|---|---|
| pack-priv static <E extends @Nullable Object> void populateMultiset(Multiset<E> multiset, ObjectInputStream stream, int distinctElements) throws IOException, ClassNotFoundException Populates a multiset by reading an input stream, as part of deserialization. See | |
| readCount | back to summary |
|---|---|
| pack-priv static int readCount(ObjectInputStream stream) throws IOException Reads a count corresponding to a serialized map, multiset, or multimap. It returns the size of
a map serialized by | |
| writeMap | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void writeMap(Map<K, V> map, ObjectOutputStream stream) throws IOException Stores the contents of a map in an output stream, as part of serialization. It does not support concurrent maps whose content may change while the method is running. The serialized output consists of the number of entries, first key, first value, second key, second value, and so on. | |
| writeMultimap | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> void writeMultimap(Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException Stores the contents of a multimap in an output stream, as part of serialization. It does not
support concurrent multimaps whose content may change while the method is running. The The serialized output consists of the number of distinct keys, and then for each distinct key: the key, the number of values for that key, and the key's values. | |
| writeMultiset | back to summary |
|---|---|
| pack-priv static <E extends @Nullable Object> void writeMultiset(Multiset<E> multiset, ObjectOutputStream stream) throws IOException Stores the contents of a multiset in an output stream, as part of serialization. It does not support concurrent multisets whose content may change while the method is running. The serialized output consists of the number of distinct elements, the first element, its count, the second element, its count, and so on. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void |
| field | back to summary |
|---|---|
| private final Field field | |
| FieldSetter | back to summary |
|---|---|
| private FieldSetter(Field field) | |
| set | back to summary |
|---|---|
| pack-priv void set(T instance, Object value) | |
| set | back to summary |
|---|---|
| pack-priv void set(T instance, int value) | |