private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
  s.defaultReadObject();
  int n=s.readInt();
  values=new Vector<>(n);
  while (--n >= 0) {
    values.addElement(s.readObject());
  }
}

private void readObject ( java . io . ObjectInputStream s ) throws java . io . IOException , ClassNotFoundException { s . defaultReadObject ( ) ; int n = s . readInt ( ) ; values = new Vector < > ( n ) ; while ( -- n >= 0 ) { values . addElement ( s . readObject ( ) ) ; } }
overridden to avoid exposing implementation details .
