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

Method readObject

output/java_guava/1.4.17/TreeMultiset.java:975–988  ·  view source on GitHub ↗
(ObjectInputStream stream)

Source from the content-addressed store, hash-verified

973 }
974
975 @GwtIncompatible // java.io.ObjectInputStream
976 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
977 stream.defaultReadObject();
978 @SuppressWarnings("unchecked")
979 // reading data stored by writeObject
980 Comparator<? super E> comparator = (Comparator<? super E>) stream.readObject();
981 Serialization.getFieldSetter(AbstractSortedMultiset.class, "comparator").set(this, comparator);
982 Serialization.getFieldSetter(TreeMultiset.class, "range").set(this, GeneralRange.all(comparator));
983 Serialization.getFieldSetter(TreeMultiset.class, "rootReference").set(this, new Reference<AvlNode<E>>());
984 AvlNode<E> header = new AvlNode<E>(null, 1);
985 Serialization.getFieldSetter(TreeMultiset.class, "header").set(this, header);
986 successor(header, header);
987 Serialization.populateMultiset(this, stream);
988 }
989
990 @GwtIncompatible // not needed in emulated source
991 private static final long serialVersionUID = 1;

Callers

nothing calls this directly

Calls 5

getFieldSetterMethod · 0.95
allMethod · 0.95
successorMethod · 0.95
populateMultisetMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected