703 |
*/ |
*/ |
704 |
private void writeObject(ObjectOutputStream s) throws IOException |
private void writeObject(ObjectOutputStream s) throws IOException |
705 |
{ |
{ |
706 |
|
s.defaultWriteObject(); |
707 |
s.writeInt(size); |
s.writeInt(size); |
708 |
Entry e = first; |
Entry e = first; |
709 |
while (e != null) |
while (e != null) |
725 |
private void readObject(ObjectInputStream s) |
private void readObject(ObjectInputStream s) |
726 |
throws IOException, ClassNotFoundException |
throws IOException, ClassNotFoundException |
727 |
{ |
{ |
728 |
|
s.defaultReadObject(); |
729 |
int i = s.readInt(); |
int i = s.readInt(); |
730 |
while (--i >= 0) |
while (--i >= 0) |
731 |
addLastEntry(new Entry(s.readObject())); |
addLastEntry(new Entry(s.readObject())); |