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

Method readObject

output/java_guava/1.4.16/EnumMultiset.java:101–109  ·  view source on GitHub ↗

@serialData the Class for the enum type, the number of distinct elements, the first element, its count, the second element, its count, and so on

(ObjectInputStream stream)

Source from the content-addressed store, hash-verified

99 */
100
101 @GwtIncompatible // java.io.ObjectInputStream
102 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
103 stream.defaultReadObject();
104 @SuppressWarnings("unchecked") // reading data stored by writeObject
105 Class<E> localType = (Class<E>) stream.readObject();
106 type = localType;
107 setBackingMap(WellBehavedMap.wrap(new EnumMap<E, Count>(type)));
108 Serialization.populateMultiset(this, stream);
109 }
110
111 @GwtIncompatible // Not needed in emulated source
112 private static final long serialVersionUID = 0;

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
populateMultisetMethod · 0.95
setBackingMapMethod · 0.45

Tested by

no test coverage detected