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

Method readObject

output/java_guava/1.4.19/TreeMultiset.java:976–989  ·  view source on GitHub ↗
(ObjectInputStream stream)

Source from the content-addressed store, hash-verified

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