public static List<Deadline> readDeadlinesList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List<Deadline> list = new ArrayList<Deadline>(size); for ( int i = 0; i < size; i++ ) { Deadline item = new DeadlineImpl(); item.readExternal( in ); list.add( item ); } return list; }
public static List<Deadline> readDeadlinesList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List<Deadline> list = new ArrayList<Deadline>(size); for ( int i = 0; i < size; i++ ) { Deadline item = new DeadlineImpl(); item.readExternal( in ); list.add( item ); } return list; }